Bluetooth: Fix dereference after NULL check
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Fri, 5 Oct 2012 13:56:54 +0000 (16:56 +0300)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Sun, 7 Oct 2012 22:15:11 +0000 (06:15 +0800)
commit85e34368dea6fc8a2d16464e01c85d3b7bd682bd
tree162bc38530ab077e3d73dff6293b814108cff17f
parent079db0c6e3854b3af9808268f3b884fa48ed0034
Bluetooth: Fix dereference after NULL check

Move code dereferencing possible NULL pointer to the check branch.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/l2cap_sock.c