diff options
author | Dan Carpenter <error27@gmail.com> | 2010-09-10 15:35:15 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-22 13:21:35 -0400 |
commit | 637ed74ff9e86d8c2979e430309a1fd28c921de9 (patch) | |
tree | 63810e74917d1d3ae1ea209c5f18eaefb90e6c52 /drivers/usb/host/ohci-sm501.c | |
parent | 5c8db070b4480c43394680d9dfd2ddb06b97d2ae (diff) |
USB: ohci-sm501: add iounmap on error path
This ioremap() was leaked on an error path.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/ohci-sm501.c')
-rw-r--r-- | drivers/usb/host/ohci-sm501.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/host/ohci-sm501.c b/drivers/usb/host/ohci-sm501.c index cff23637cfcc..041d30f30c10 100644 --- a/drivers/usb/host/ohci-sm501.c +++ b/drivers/usb/host/ohci-sm501.c | |||
@@ -168,7 +168,7 @@ static int ohci_hcd_sm501_drv_probe(struct platform_device *pdev) | |||
168 | 168 | ||
169 | retval = usb_add_hcd(hcd, irq, IRQF_DISABLED | IRQF_SHARED); | 169 | retval = usb_add_hcd(hcd, irq, IRQF_DISABLED | IRQF_SHARED); |
170 | if (retval) | 170 | if (retval) |
171 | goto err4; | 171 | goto err5; |
172 | 172 | ||
173 | /* enable power and unmask interrupts */ | 173 | /* enable power and unmask interrupts */ |
174 | 174 | ||
@@ -176,6 +176,8 @@ static int ohci_hcd_sm501_drv_probe(struct platform_device *pdev) | |||
176 | sm501_modify_reg(dev->parent, SM501_IRQ_MASK, 1 << 6, 0); | 176 | sm501_modify_reg(dev->parent, SM501_IRQ_MASK, 1 << 6, 0); |
177 | 177 | ||
178 | return 0; | 178 | return 0; |
179 | err5: | ||
180 | iounmap(hcd->regs); | ||
179 | err4: | 181 | err4: |
180 | release_mem_region(hcd->rsrc_start, hcd->rsrc_len); | 182 | release_mem_region(hcd->rsrc_start, hcd->rsrc_len); |
181 | err3: | 183 | err3: |