OSDN Git Service

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)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 15 Feb 2018 13:28:13 +0000 (15:28 +0200)
commit8874ae5f15f3feef3b4a415b9aed51edcf449aa1
tree784289ea8dfd428974b927c59fff2b1900076b65
parent755d739534f998d92e348fba8ffb0478416576e7
USB: gadget: udc: Add missing platform_device_put() on error in bdc_pci_probe()

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>
drivers/usb/gadget/udc/bdc/bdc_pci.c