diff options
author | Axel Lin <axel.lin@gmail.com> | 2010-10-16 10:48:08 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-22 13:22:18 -0400 |
commit | e581c8c8a957776db452afe316706242abcc1cdc (patch) | |
tree | d9fb2ad3bddbf7edd17fd01e31498eb1b0aa6bd3 /drivers/usb/host/imx21-hcd.c | |
parent | bd68826897d328f332d8f98979d9ee95b96fb6f8 (diff) |
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.c | 2 |
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: | |||
1906 | failed_clock_get: | 1906 | failed_clock_get: |
1907 | iounmap(imx21->regs); | 1907 | iounmap(imx21->regs); |
1908 | failed_ioremap: | 1908 | failed_ioremap: |
1909 | release_mem_region(res->start, res->end - res->start); | 1909 | release_mem_region(res->start, resource_size(res)); |
1910 | failed_request_mem: | 1910 | failed_request_mem: |
1911 | remove_debug_files(imx21); | 1911 | remove_debug_files(imx21); |
1912 | usb_put_hcd(hcd); | 1912 | usb_put_hcd(hcd); |