]> www.infradead.org Git - users/dwmw2/linux.git/commit
usb: chipidea: ci_hdrc_imx: add missing put_device() call in usbmisc_get_init_data()
authorYu Kuai <yukuai3@huawei.com>
Tue, 17 Nov 2020 01:14:30 +0000 (09:14 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Jan 2021 19:09:10 +0000 (20:09 +0100)
commit06ff486be1025259bcc35a04e4786a071a189857
treefa9639c9be66211e086503ac5b5af03da5ce903d
parent8a950124e7936ffa990ac39c6bbf7d42ad8cb373
usb: chipidea: ci_hdrc_imx: add missing put_device() call in usbmisc_get_init_data()

commit 83a43ff80a566de8718dfc6565545a0080ec1fb5 upstream.

if of_find_device_by_node() succeed, usbmisc_get_init_data() doesn't have
a corresponding put_device(). Thus add put_device() to fix the exception
handling for this function implementation.

Fixes: ef12da914ed6 ("usb: chipidea: imx: properly check for usbmisc")
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20201117011430.642589-1-yukuai3@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/ci_hdrc_imx.c