drm/msm: Fix IOMMU clean up path in case msm_iommu_new() fails
authorStephane Viau <sviau@codeaurora.org>
Tue, 15 Sep 2015 12:41:46 +0000 (08:41 -0400)
committerRob Clark <robdclark@gmail.com>
Thu, 22 Oct 2015 19:39:54 +0000 (15:39 -0400)
commit5e921b19268d87a0c64f3181c0d3ea9df9eea972
tree4cb1fefee21aaa06740a64b067c6836ce53fe7ae
parent60fb49ca52ec304a937bcee14ae6acbe1e75562b
drm/msm: Fix IOMMU clean up path in case msm_iommu_new() fails

msm_iommu_new() can fail and this change makes sure that we
detect the failure and free the allocated domain before going
any further.

Signed-off-by: Stephane Viau <sviau@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c
drivers/gpu/drm/msm/msm_gpu.c