diff options
author | Rakesh Bodla <rbodla@nvidia.com> | 2012-08-08 14:36:13 +0530 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-08-09 17:57:27 -0700 |
commit | 48d8c7c91ea5acddf23f74abc801c89c9f16680f (patch) | |
tree | 69d6a9868b73f0a6f8342a245089a9493876f123 /arch/arm/mach-tegra/usb_phy.c | |
parent | a7eb6356009a8e7423a200b49654a883117f282f (diff) |
arm: tegra: usb_phy: fix null pointer dereference
Fixing the null pointer dereference crash. Also
modifying USB driver not to give up in case if there
is no avdd_usb regulator.
Bug 1029852
Change-Id: I3232b7fa1580a0dc1aadd47b138e5eeae05af6f0
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/121984
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/usb_phy.c')
-rw-r--r-- | arch/arm/mach-tegra/usb_phy.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/usb_phy.c b/arch/arm/mach-tegra/usb_phy.c index 3f3c3846a4aa..9288144a1e11 100644 --- a/arch/arm/mach-tegra/usb_phy.c +++ b/arch/arm/mach-tegra/usb_phy.c @@ -284,8 +284,6 @@ struct tegra_usb_phy *tegra_usb_phy_open(struct platform_device *pdev) ERR("inst:[%d] couldn't get regulator avdd_usb: %ld\n", phy->inst, PTR_ERR(phy->vdd_reg)); phy->vdd_reg = NULL; - err = PTR_ERR(phy->vdd_reg); - goto fail_io; } err = tegra_usb_phy_get_clocks(phy); |