]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
Bluetooth: RFCOMM: fix ODEBUG bug in rfcomm_dev_ioctl
authorQiujun Huang <hqjagain@gmail.com>
Sun, 8 Mar 2020 09:45:27 +0000 (17:45 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 8 Mar 2020 13:44:58 +0000 (14:44 +0100)
commit71811cac8532b2387b3414f7cd8fe9e497482864
tree3e477a99519723f18d4a4a709376b0d664fe3537
parent4be5ca67d59d707a4b1c8608ca230ad65aa4f232
Bluetooth: RFCOMM: fix ODEBUG bug in rfcomm_dev_ioctl

Needn't call 'rfcomm_dlc_put' here, because 'rfcomm_dlc_exists' didn't
increase dlc->refcnt.

Reported-by: syzbot+4496e82090657320efc6@syzkaller.appspotmail.com
Signed-off-by: Qiujun Huang <hqjagain@gmail.com>
Suggested-by: Hillf Danton <hdanton@sina.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/rfcomm/tty.c