]> git.baikalelectronics.ru Git - 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Apr 2020 08:48:13 +0000 (10:48 +0200)
commitd635d3921448b21a38824318ea126ce380885860
treec59671285737e0f9096e434a5ef909df7e2fafe8
parent02fbf981cb9ea0a7571f9cee9596f416dfe57adb
Bluetooth: RFCOMM: fix ODEBUG bug in rfcomm_dev_ioctl

commit aa5b259e8f397271a27f66c513d696833542152b 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