Message ID | 20230526084038.2199788-1-iam@sung-woo.kim |
---|---|
State | Superseded |
Headers | show |
Series | Bluetooth: L2CAP: Fix use-after-free in l2cap_sock_ready_cb | expand |
diff --git a/net/bluetooth/l2cap_sock.c b/net/bluetooth/l2cap_sock.c index eebe25610..ddd940a46 100644 --- a/net/bluetooth/l2cap_sock.c +++ b/net/bluetooth/l2cap_sock.c @@ -1414,7 +1414,8 @@ static int l2cap_sock_release(struct socket *sock) if (!sk) return 0; - + + l2cap_sock_cleanup_listen(sk); bt_sock_unlink(&l2cap_sk_list, sk); err = l2cap_sock_shutdown(sock, SHUT_RDWR);