diff options
author | Vinayak Pane <vpane@nvidia.com> | 2012-01-26 01:47:29 -0800 |
---|---|---|
committer | Rohan Somvanshi <rsomvanshi@nvidia.com> | 2012-02-03 05:42:52 -0800 |
commit | 410f87783b83d27e0f8853c190c3ef5b851ad333 (patch) | |
tree | cb890233ff50e8b3065e3c44df84c66034e40941 /arch/arm/mach-tegra/tegra3_dvfs.c | |
parent | 1b7fa17ed4f4c3ca29e5eef43a7ac5e294e8da53 (diff) |
ARM: tegra: enterprise: fix memleak in hsic_host_register
Use platform_device_add_data() instead of kmalloc for creating
a copy of platform data. Let the driver-model release the memory
allocated for platform_data to avoid possible memory leak.
Bug 923597
Reviewed-on: http://git-master/r/77544
Change-Id: Ic7a54e773c95999b14ec97059a2f49999ea7d5ed
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78705
Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'arch/arm/mach-tegra/tegra3_dvfs.c')
0 files changed, 0 insertions, 0 deletions