History

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.

Torsten Fleischer committed 12 years ago

Commit 9680b601 parent 8071e6f1 file · +0 −1Browse files

Unified · Split

drivers/usb/chipidea/core.c+0−1
@@ -742,7 +742,6 @@ static int ci_hdrc_remove(struct platform_device *pdev) · 741 unmodified lines
742 ci_role_destroy(ci);742 ci_role_destroy(ci);
743 ci_hdrc_enter_lpm(ci, true);743 ci_hdrc_enter_lpm(ci, true);
744 usb_phy_shutdown(ci->transceiver);744 usb_phy_shutdown(ci->transceiver);
745 kfree(ci->hw_bank.regmap);
746 745
747 return 0;746 return 0;
748}747}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t