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)
commitcc29c70dd581f85ee7a3e7980fb031f90b90a2ab
treeb28331df9330eb6ba156bc9baeae966ff44196a1
parent50b2ff1bc47baacb8e9882b2b2a74b240ddbeecf
net/netrom: Fix socket locking

Patch "af_rose/x25: Sanity check the maximum user frame size"
(commit 83e0bbcbe2145f160fbaa109b0439dae7f4a38a9) 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