]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
USB: gadget: udc: Add missing platform_device_put() on error in bdc_pci_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 23 Jan 2018 09:35:14 +0000 (09:35 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Mar 2018 11:05:47 +0000 (12:05 +0100)
commit41d3763d99424730f62e5dd67567f961e5a9d34e
tree2192aacc7fb4b31ab27169dc0f31784bb7b829bf
parentf21951e274023d95bd0c97409b3bf22b97f4c0ba
USB: gadget: udc: Add missing platform_device_put() on error in bdc_pci_probe()

commit 8874ae5f15f3feef3b4a415b9aed51edcf449aa1 upstream.

Add the missing platform_device_put() before return from bdc_pci_probe()
in the platform_device_add_resources() error handling case.

Fixes: efed421a94e6 ("usb: gadget: Add UDC driver for Broadcom USB3.0 device controller IP BDC")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/bdc/bdc_pci.c