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)
commitee93053d569b8b56e09a278fc9c41b7adf070a96
tree8ad25c2d3298ca0d46cde38cf15bb4989fe6f352
parent11e3ff7072789ad4585870cbdde1be10c45f1cc4
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