projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd68826
)
USB: imx21-hcd - fix off by one resource size calculation
author
Axel Lin
<axel.lin@gmail.com>
Sat, 16 Oct 2010 14:48:08 +0000
(22:48 +0800)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Fri, 22 Oct 2010 17:22:18 +0000
(10:22 -0700)
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>
drivers/usb/host/imx21-hcd.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/host/imx21-hcd.c
b/drivers/usb/host/imx21-hcd.c
index dd132eb7fee71ee0b2caff13cb17a7b4724a8969..1dfb2c8f7707af024a344ede58c835e09c5f069e 100644
(file)
--- 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, res
ource_size(res)
);
failed_request_mem:
remove_debug_files(imx21);
usb_put_hcd(hcd);