]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: ISO: unlock on error path in iso_sock_setsockopt()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 27 Jul 2022 12:08:56 +0000 (15:08 +0300)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 9 Aug 2022 00:03:57 +0000 (17:03 -0700)
commitcfd36909cba4fc1fb227f70c1ac14da38cdb4ea1
tree22cf230bbdb68c089bec3740e0a3a6c45489557b
parent29a39ecae2755be2d2c796efdfea97d257c3c3ba
Bluetooth: ISO: unlock on error path in iso_sock_setsockopt()

Call release_sock(sk); before returning on this error path.

Fixes: c7b22e81274f2 ("Bluetooth: Add BTPROTO_ISO socket type")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/iso.c