kernel-fxtec-pro1x/drivers/usb/gadget
Alexey Khoroshilov 6527cc2776 usb: gadget: amd5536udc: fix error handling in udc_pci_probe()
If a failure happens early in udc_pci_probe(), error handling code
just kfree(dev) and returns. The patch adds proper resource
deallocations in udc_pci_probe() itself,
since udc_pci_remove() is not suitabe to be called so early
in initialization process.

By the way, iounmap(dev->regs) is replaced by iounmap(dev->virt_addr)
in udc_pci_remove() for clarity.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2015-09-14 10:14:51 -05:00
..
function usb: patches for v4.3 merge window 2015-08-14 16:41:11 -07:00
legacy usb: gadget: legacy: nokia: add CONFIG_BLOCK dependency 2015-08-06 11:29:19 -05:00
udc usb: gadget: amd5536udc: fix error handling in udc_pci_probe() 2015-09-14 10:14:51 -05:00
composite.c drivers/usb/gadget/composite.c: i18n is not an acronym 2015-08-07 14:03:23 +02:00
config.c usb: gadget: add usb otg descriptor allocate and init interface 2015-07-29 09:59:21 -05:00
configfs.c usb: gadget: configfs: allocate and init otg descriptor by otg capabilities 2015-07-29 09:59:21 -05:00
configfs.h usb: gadget: OS descriptors: provide interface directory names 2014-06-19 10:06:48 -05:00
epautoconf.c usb: gadget: fix possible regression introduced with ep->claimed 2015-09-14 09:51:50 -05:00
functions.c
Kconfig usb: gadget: f_printer: fix dependencies 2015-03-24 11:35:21 -05:00
Makefile usb: gadget: use $(srctree) instead of $(PWD) for includes 2014-08-29 15:53:46 -05:00
u_f.c
u_f.h usb: gadget: FunctionFS: share VLA macros with all usb gadget files 2014-05-14 09:37:27 -05:00
u_os_desc.h usb: gadget: u_os_desc: helper functions for accessing ext prop buffer 2014-07-10 08:36:51 -05:00
usbstring.c