]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
Bluetooth: delete a stray unlock
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 19 Nov 2019 06:17:05 +0000 (09:17 +0300)
committerPaolo Pisati <paolo.pisati@canonical.com>
Thu, 30 Jan 2020 15:22:15 +0000 (16:22 +0100)
commiteb6983dd2e9fdefd253876901a4e2c84736b03dc
tree6a1ed6776de2a46c0a9a3af8284ca9bc4c0abda4
parent72adc13ef586355ef20468b7a95b35103094e8bf
Bluetooth: delete a stray unlock

BugLink: https://bugs.launchpad.net/bugs/1860125
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>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
net/bluetooth/l2cap_core.c