Skip to content
Commit ed958855 authored by Edward Adam Davis's avatar Edward Adam Davis Committed by Luiz Augusto von Dentz
Browse files

Bluetooth: SCO: remove the redundant sco_conn_put



When adding conn, it is necessary to increase and retain the conn reference
count at the same time.

Another problem was fixed along the way, conn_put is missing when hcon is NULL
in the timeout routine.

Fixes: e6720779 ("Bluetooth: SCO: Use kref to track lifetime of sco_conn")
Reported-and-tested-by: default avatar <syzbot+489f78df4709ac2bfdd3@syzkaller.appspotmail.com>
Closes: https://syzkaller.appspot.com/bug?extid=489f78df4709ac2bfdd3


Signed-off-by: default avatarEdward Adam Davis <eadavis@qq.com>
Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
parent a66dfaf1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment