]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 29 Apr 2020 12:55:50 +0000 (14:55 +0200)
commitb2780e0db99dcf21ee7c5eadbd15fc2a3897a3d3
tree21a3ad7fd2c8ff55b5dc00e06b7c9f488a8a3622
parentc6696fb0f7d01572cf85e53854e99160fe27440a
Bluetooth: RFCOMM: fix ODEBUG bug in rfcomm_dev_ioctl

BugLink: https://bugs.launchpad.net/bugs/1873043
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
net/bluetooth/rfcomm/tty.c