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:
parent
bd68826897
commit
e581c8c8a9
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue