Skip to content

Commit

Permalink
Replace hci_conn_put with hci_conn_drop
Browse files Browse the repository at this point in the history
Replace hci_conn_put with hci_conn_drop to remove struct hic_conn from
struct hci_conn_hash.

Reported-by: syzbot+305a91e025a73e4fd6ce@syzkaller.appspotmail.com
  • Loading branch information
coiby committed Aug 4, 2020
1 parent ac3a0c8 commit 916d16c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/bluetooth/hci_conn.c
Expand Up @@ -1716,8 +1716,7 @@ void hci_chan_del(struct hci_chan *chan)
/* Prevent new hci_chan's to be created for this hci_conn */
set_bit(HCI_CONN_DROP, &conn->flags);

hci_conn_put(conn);

hci_conn_drop(conn);
skb_queue_purge(&chan->data_q);
kfree(chan);
}
Expand Down

0 comments on commit 916d16c

Please sign in to comment.