diff options
| author | Libo Chen <[email protected]> | 2013-07-08 15:59:47 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2013-07-09 10:33:20 -0700 |
| commit | 34e3a58c66aafd90cc16c061569fbefc3ff451e9 (patch) | |
| tree | 4f3f3e15ed91bc8ad54ac0cf6f8f61a5b7d5f3d2 /tools/perf/scripts/python/bin | |
| parent | 9756b9187eebb093b9f6a154ecceb67648e53391 (diff) | |
drivers/iommu/msm_iommu_dev.c: fix leak and clean up error paths
Fix two obvious problems:
1. We have registered msm_iommu_driver first, and need unregister it
when registered msm_iommu_ctx_driver fail
2. We don't need to kfree drvdata before kzalloc was successful.
[[email protected]: remove now-unneeded initialization of ctx_drvdata, remove unneeded braces]
Signed-off-by: Libo Chen <[email protected]>
Acked-by: David Brown <[email protected]>
Cc: David Woodhouse <[email protected]>
Cc: James Hogan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions