]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Apr 2020 11:16:37 +0000 (13:16 +0200)
commitdbed22f174d807633d6d569857901bcb26d4c393
tree8feac99b5a838b79f26bb1820b71bc9f0d0678ab
parentee114957ff52009ab77a40bc626b0a44caf608a3
Bluetooth: RFCOMM: fix ODEBUG bug in rfcomm_dev_ioctl

commit 71811cac8532b2387b3414f7cd8fe9e497482864 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/bluetooth/rfcomm/tty.c