All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] USB: imx21-hcd - fix off by one resource size calculation
@ 2010-10-16 14:48 Axel Lin
  0 siblings, 0 replies; only message in thread
From: Axel Lin @ 2010-10-16 14:48 UTC (permalink / raw)
  To: linux-kernel; +Cc: Greg Kroah-Hartman, Martin Fuzzey, linux-usb

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 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 2264c99..e49b75a 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);
-- 
1.7.0.4




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2010-10-16 14:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-16 14:48 [PATCH] USB: imx21-hcd - fix off by one resource size calculation Axel Lin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.