summaryrefslogtreecommitdiff
path: root/drivers/usb/host/imx21-hcd.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2010-10-16 14:48:08 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2010-10-22 17:22:18 (GMT)
commite581c8c8a957776db452afe316706242abcc1cdc (patch)
treed9fb2ad3bddbf7edd17fd01e31498eb1b0aa6bd3 /drivers/usb/host/imx21-hcd.c
parentbd68826897d328f332d8f98979d9ee95b96fb6f8 (diff)
downloadlinux-fsl-qoriq-e581c8c8a957776db452afe316706242abcc1cdc.tar.xz
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 dd132eb..1dfb2c8 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);