]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix missing channel unlock in l2cap_le_credits
authorMartin Townsend <mtownsend1973@gmail.com>
Mon, 13 Oct 2014 18:24:45 +0000 (19:24 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 25 Oct 2014 05:56:25 +0000 (07:56 +0200)
commit0cdc7e09c220f332fd078e5ef170ba8138a55950
tree8ad25c2d3298ca0d46cde38cf15bb4989fe6f352
parent238e646467fedf17bb9cfc4a05b8c9a9ca1cec42
Bluetooth: Fix missing channel unlock in l2cap_le_credits

In the error case where credits is greater than max_credits there
is a missing l2cap_chan_unlock before returning.

Signed-off-by: Martin Townsend <mtownsend1973@gmail.com>
Tested-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap_core.c