]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix socket not getting freed if l2cap channel create fails
authorJaganath Kanakkassery <jaganath.k@samsung.com>
Thu, 19 Jul 2012 07:24:04 +0000 (12:54 +0530)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Mon, 6 Aug 2012 18:19:37 +0000 (15:19 -0300)
commit2a2a1129bf43fc854d33711da4fda78f104a9717
tree64508a0d4d7cc178f81de89873aa33c630fa9585
parentb07c3a333fca3f1c02905068b27e06787a17cbb1
Bluetooth: Fix socket not getting freed if l2cap channel create fails

If l2cap_chan_create() fails then it will return from l2cap_sock_kill
since zapped flag of sk is reset.

Signed-off-by: Jaganath Kanakkassery <jaganath.k@samsung.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/l2cap_sock.c