summaryrefslogtreecommitdiffstats
path: root/mm/mremap.c
diff options
context:
space:
mode:
authorLibo Chen <clbchenlibo.chen@huawei.com>2013-07-09 00:59:47 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2013-07-09 19:33:20 +0200
commit34e3a58c66aafd90cc16c061569fbefc3ff451e9 (patch)
tree4f3f3e15ed91bc8ad54ac0cf6f8f61a5b7d5f3d2 /mm/mremap.c
parentfsnotify: update comments concerning locking scheme (diff)
downloadlinux-34e3a58c66aafd90cc16c061569fbefc3ff451e9.tar.xz
linux-34e3a58c66aafd90cc16c061569fbefc3ff451e9.zip
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. [akpm@linux-foundation.org: remove now-unneeded initialization of ctx_drvdata, remove unneeded braces] Signed-off-by: Libo Chen <libo.chen@huawei.com> Acked-by: David Brown <davidb@codeaurora.org> Cc: David Woodhouse <dwmw2@infradead.org> Cc: James Hogan <james.hogan@imgtec.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/mremap.c')
0 files changed, 0 insertions, 0 deletions