OSDN Git Service

Bluetooth: delete a stray unlock
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 19 Nov 2019 06:17:05 +0000 (09:17 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Jan 2020 10:22:43 +0000 (11:22 +0100)
commit166f38c95ce64761c067e9ac456997b1da21780a
treee202af16932d9fdd86f82402063efa611c049bc0
parent3620ab5bc3cbd3e88de7cbcdf665d5113bc13679
Bluetooth: delete a stray unlock

commit df66499a1fab340c167250a5743931dc50d5f0fa upstream.

We used to take a lock in amp_physical_cfm() but then we moved it to
the caller function.  Unfortunately the unlock on this error path was
overlooked so it leads to a double unlock.

Fixes: a514b17fab51 ("Bluetooth: Refactor locking in amp_physical_cfm")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/bluetooth/l2cap_core.c