]> rtime.felk.cvut.cz Git - socketcan-devel.git/commit
net: check the length of the socket address passed to connect(2)
authorhartkopp <hartkopp@030b6a49-0b11-0410-94ab-b0dab22257f2>
Tue, 3 May 2011 11:39:23 +0000 (11:39 +0000)
committerhartkopp <hartkopp@030b6a49-0b11-0410-94ab-b0dab22257f2>
Tue, 3 May 2011 11:39:23 +0000 (11:39 +0000)
commit624588b4b46a9d5a968f7f000e480f8cbb8599a8
treeaf90578a7e4526e62895caf513b6806994629a99
parentd66fad2088d546518979e0ed22da412b75a564ce
net: check the length of the socket address passed to connect(2)

I missed that upstream commit from Changli Gao.
http://git.kernel.org/?p=linux/kernel/git/davem/net-next-2.6.git;a=commitdiff;h=6503d96168f891ffa3b70ae6c9698a1a722025a0
So here it comes for the BerliOS trunk also ... (in branches/j1939 it is already included)

Check the length of the socket address passed to connect(2). If the
length is invalid, -EINVAL will be returned.

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
git-svn-id: svn://svn.berlios.de//socketcan/trunk@1251 030b6a49-0b11-0410-94ab-b0dab22257f2
kernel/2.6/net/can/bcm.c