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

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

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