summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/imx21-hcd.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2010-10-16 16:48:08 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2010-10-22 19:22:18 +0200
commite581c8c8a957776db452afe316706242abcc1cdc (patch)
treed9fb2ad3bddbf7edd17fd01e31498eb1b0aa6bd3 /drivers/usb/host/imx21-hcd.c
parentusb: gadget: fix Kconfig warning (diff)
downloadlinux-e581c8c8a957776db452afe316706242abcc1cdc.tar.xz
linux-e581c8c8a957776db452afe316706242abcc1cdc.zip
USB: imx21-hcd - fix off by one resource size calculation
Signed-off-by: Axel Lin <axel.lin@gmail.com> Tested-by: Jon Povey <Jon.Povey@racelogic.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/imx21-hcd.c')
-rw-r--r--drivers/usb/host/imx21-hcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/imx21-hcd.c b/drivers/usb/host/imx21-hcd.c
index dd132eb7fee7..1dfb2c8f7707 100644
--- a/drivers/usb/host/imx21-hcd.c
+++ b/drivers/usb/host/imx21-hcd.c
@@ -1906,7 +1906,7 @@ failed_clock_set:
failed_clock_get:
iounmap(imx21->regs);
failed_ioremap:
- release_mem_region(res->start, res->end - res->start);
+ release_mem_region(res->start, resource_size(res));
failed_request_mem:
remove_debug_files(imx21);
usb_put_hcd(hcd);