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: Torsten Fleischer <to-fleischer@t-online.de>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Torsten Fleischer and committed by
Greg Kroah-Hartman
9680b60e 8071e6f8

-1
-1
drivers/usb/chipidea/core.c
··· 742 742 ci_role_destroy(ci); 743 743 ci_hdrc_enter_lpm(ci, true); 744 744 usb_phy_shutdown(ci->transceiver); 745 - kfree(ci->hw_bank.regmap); 746 745 747 746 return 0; 748 747 }