提交 e581c8c8 编写于 作者: A Axel Lin 提交者: Greg Kroah-Hartman

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

Signed-off-by: NAxel Lin <axel.lin@gmail.com>
Tested-by: NJon Povey <Jon.Povey@racelogic.co.uk>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册