]> 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)
commitbb15584c7898069a38a0d4d0ceb0d73e8c0a4fc2
tree22cf230bbdb68c089bec3740e0a3a6c45489557b
parentdc929a9c23d1159b808e3fb8dd7616d81980f280
Bluetooth: ISO: unlock on error path in iso_sock_setsockopt()

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

Fixes: e8b1014d0e46d ("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