diff options
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | 2015-09-06 01:11:51 +0300 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-09-14 10:14:51 -0500 |
commit | 6527cc27761a124de8c08e6488ce17fdcc74dbba (patch) | |
tree | 730081fef49686041d37fba0bd46793b3c4d9225 /drivers/irqchip/irq-mips-cpu.c | |
parent | 88ccdbd5fc59ce8c69261a20746ca2533be7e358 (diff) |
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>
Diffstat (limited to 'drivers/irqchip/irq-mips-cpu.c')
0 files changed, 0 insertions, 0 deletions