OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.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
|
history
diff --git
a/drivers/usb/host/imx21-hcd.c
b/drivers/usb/host/imx21-hcd.c
index
dd132eb
..
1dfb2c8
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);