Bluetooth: fix oops in l2cap_connect_req
authorNathan Holstein <nathan.holstein@gmail.com>
Fri, 15 Oct 2010 15:54:02 +0000 (11:54 -0400)
committerGustavo F. Padovan <padovan@profusion.mobi>
Sun, 17 Oct 2010 23:19:19 +0000 (21:19 -0200)
In error cases when the ACL is insecure or we fail to allocate a new
struct sock, we jump to the "response" label.  If so, "sk" will be
null and the kernel crashes.

Signed-off-by: Nathan Holstein <nathan.holstein@gmail.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>

No differences found