diff options
author | Rakesh Bodla <rbodla@nvidia.com> | 2011-03-31 17:16:30 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:43:30 -0800 |
commit | b21fde722e625766ec90024a8c019adc2c60bc1b (patch) | |
tree | b9d359ab932c19d6dafbc0da9e3fff8e21aba65d /arch/arm/mach-tegra/usb_phy.c | |
parent | 9e47b2fb15805a9ec98b97bf57d7044dfbde77e3 (diff) |
ARM: tegra: usb_phy: Fixing unintialized pointer
Memory for phy structure is allocated using kzalloc
for phy memory allocation so that reg_vbus doesn't
contain garbage value.
Bug 807534
Original-Change-Id: Ib25a5baebda2b39baf49d12a16044688d4ae559f
Reviewed-on: http://git-master/r/24930
Reviewed-by: Rakesh Bodla <rbodla@nvidia.com>
Tested-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: I2da9e8c2102c564a68493d22cdf951866c165635
Rebase-Id: R7b15702463ba89e7b9bc447432314fe6ada00974
Diffstat (limited to 'arch/arm/mach-tegra/usb_phy.c')
-rw-r--r-- | arch/arm/mach-tegra/usb_phy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/usb_phy.c b/arch/arm/mach-tegra/usb_phy.c index e69f8ad4322b..4190cb8d8c91 100644 --- a/arch/arm/mach-tegra/usb_phy.c +++ b/arch/arm/mach-tegra/usb_phy.c @@ -1346,7 +1346,7 @@ struct tegra_usb_phy *tegra_usb_phy_open(int instance, void __iomem *regs, int err; bool hsic = false; - phy = kmalloc(sizeof(struct tegra_usb_phy), GFP_KERNEL); + phy = kzalloc(sizeof(struct tegra_usb_phy), GFP_KERNEL); if (!phy) return ERR_PTR(-ENOMEM); |