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.
Unified · Split
| @@ -742,7 +742,6 @@ static int ci_hdrc_remove(struct platform_device *pdev) · 741 unmodified lines | ||
| 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 | } |