diff options
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2013-03-12 10:38:39 +0100 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2013-03-12 10:38:39 +0100 |
commit | efc9dd87e6586e8391524c0fafd42cfdc392d510 (patch) | |
tree | 0f951daaae6de0aba7a91aec379f2d6d677e8953 | |
parent | d4be58791a6358e85fa1bf139d46f7e80c65eec4 (diff) |
colibri_t20/30: usb: otg: fix host to peripheral transition
Fix null pointer during USB OTG host to peripheral transition caused by
freeing the platform data twice. See the following Tegra OTG driver
commit for reference:
8acf989d5896b152cc88f8b29afd11d522f903e3
-rw-r--r-- | arch/arm/mach-tegra/board-colibri_t20.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-tegra/board-colibri_t30.c | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/arch/arm/mach-tegra/board-colibri_t20.c b/arch/arm/mach-tegra/board-colibri_t20.c index 2cb679a3e23f..e847c66543b1 100644 --- a/arch/arm/mach-tegra/board-colibri_t20.c +++ b/arch/arm/mach-tegra/board-colibri_t20.c @@ -1305,8 +1305,6 @@ error: static void tegra_usb_otg_host_unregister(struct platform_device *pdev) { - kfree(pdev->dev.platform_data); - pdev->dev.platform_data = NULL; platform_device_unregister(pdev); } diff --git a/arch/arm/mach-tegra/board-colibri_t30.c b/arch/arm/mach-tegra/board-colibri_t30.c index ceb5ee546947..84f69a7061dc 100644 --- a/arch/arm/mach-tegra/board-colibri_t30.c +++ b/arch/arm/mach-tegra/board-colibri_t30.c @@ -1181,8 +1181,6 @@ error: static void tegra_usb_otg_host_unregister(struct platform_device *pdev) { - kfree(pdev->dev.platform_data); - pdev->dev.platform_data = NULL; platform_device_unregister(pdev); } |