]> git.baikalelectronics.ru Git - kernel.git/commit
net/netrom: Fix socket locking
authorJean Delvare <jdelvare@suse.de>
Wed, 22 Apr 2009 07:49:51 +0000 (00:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Apr 2009 07:49:51 +0000 (00:49 -0700)
commitfb3ac062a80004f6ce61d1c09e8809346c800e09
treeb28331df9330eb6ba156bc9baeae966ff44196a1
parentddf2c3c326ec5d5e28156768d9b4db4324593059
net/netrom: Fix socket locking

Patch "af_rose/x25: Sanity check the maximum user frame size"
(commit 170077adb80aa1321ced68fac2edd0be3f7e4d5e) from Alan Cox got
locking wrong. If we bail out due to user frame size being too large,
we must unlock the socket beforehand.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netrom/af_netrom.c