Bluetooth: l2cap: always unlock channel in l2cap_conless_channel()
authorDmitry Antipov <dmantipov@yandex.ru>
Wed, 31 Jul 2024 09:19:36 +0000 (12:19 +0300)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 7 Aug 2024 20:35:56 +0000 (16:35 -0400)
commitc531e63871c0b50c8c4e62c048535a08886fba3e
treeac01663ebadff46a1046543932bee842cafd957f
parente1d28be268cfe978e19a18a3a9b37a4a7d37745e
Bluetooth: l2cap: always unlock channel in l2cap_conless_channel()

Add missing call to 'l2cap_chan_unlock()' on receive error handling
path in 'l2cap_conless_channel()'.

Fixes: a24cce144b98 ("Bluetooth: Fix reference counting of global L2CAP channels")
Reported-by: syzbot+45ac74737e866894acb0@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=45ac74737e866894acb0
Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/l2cap_core.c