Skip to content

Commit

Permalink
Revert "Bluetooth: L2CAP: Fix use-after-free in l2cap_sock_ready_cb"
Browse files Browse the repository at this point in the history
This reverts commit 4be90a55eaa1fb98e48629a3a742b1f93d0b47d3.
  • Loading branch information
log1cs committed Sep 19, 2023
1 parent 0872e4f commit 7acbac5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/bluetooth/l2cap_sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ static const struct proto_ops l2cap_sock_ops;
static void l2cap_sock_init(struct sock *sk, struct sock *parent);
static struct sock *l2cap_sock_alloc(struct net *net, struct socket *sock,
int proto, gfp_t prio, int kern);
static void l2cap_sock_cleanup_listen(struct sock *parent);

bool l2cap_is_socket(struct socket *sock)
{
Expand Down Expand Up @@ -1197,7 +1196,6 @@ 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, 2);
Expand Down

0 comments on commit 7acbac5

Please sign in to comment.