Skip to content
Commit 9680b60e authored by Torsten Fleischer's avatar Torsten Fleischer Committed by Greg Kroah-Hartman
Browse files

usb: chipidea: Fix oops when removing the ci_hdrc module



The call of 'kfree(ci->hw_bank.regmap)' in ci_hdrc_remove() sometimes causes
a kernel oops when removing the ci_hdrc module.

Since there is no separate memory allocated for the ci->hw_bank.regmap array,
there is no need to free it.

Cc: v3.14+ <stable@@vger.kernel.org>
Signed-off-by: default avatarTorsten Fleischer <to-fleischer@t-online.de>
Signed-off-by: default avatarPeter Chen <peter.chen@freescale.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8071e6f8
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