drm/msm/dpu: Avoid calling _dpu_kms_mmu_destroy() on init failure
authorSean Paul <seanpaul@chromium.org>
Mon, 17 Jun 2019 20:03:46 +0000 (16:03 -0400)
committerSean Paul <seanpaul@chromium.org>
Thu, 20 Jun 2019 18:41:56 +0000 (14:41 -0400)
commita93be1fc6c84f09a51bb72f833a39c2dc942bd21
treeb563edae1a8c1ad68c5a6bf278f283c3599a0363
parent73e82519ea775799bdc8f10cd77aad2f550edb0a
drm/msm/dpu: Avoid calling _dpu_kms_mmu_destroy() on init failure

Fix the error paths in _dpu_kms_mmu_init() to properly
clean up the iommu domain and not call _dpu_kms_mmu_destroy() when
things are only partially setup.

Reviewed-by: Rob Clark <robdclark@chromium.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190617200405.131843-2-sean@poorly.run
drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c