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>
This commit is contained in:
Axel Lin 2010-10-16 22:48:08 +08:00 committed by Greg Kroah-Hartman
parent bd68826897
commit e581c8c8a9
1 changed files with 1 additions and 1 deletions

View File

@ -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);