Commit e581c8c8 authored by Axel Lin's avatar Axel Lin Committed by Greg Kroah-Hartman

USB: imx21-hcd - fix off by one resource size calculation

Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Tested-by: default avatarJon Povey <Jon.Povey@racelogic.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent bd688268
......@@ -1906,7 +1906,7 @@ static int imx21_probe(struct platform_device *pdev)
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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment