diff options
author | Boris Brezillon <boris.brezillon@collabora.com> | 2019-06-18 10:13:43 +0200 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2019-06-18 09:26:28 -0600 |
commit | 9870dc39dc53c0ab0534e1d8311a4abed7db570e (patch) | |
tree | 85bb5e5b0204b2ab35c5a49a4c42667c5aec5594 /drivers/gpu/drm/gma500/gma_display.c | |
parent | 48eaeb7664c76139438724d520a1ea4a84a3ed92 (diff) |
drm/panfrost: Make sure a BO is only unmapped when appropriate
mmu_ops->unmap() will fail when called on a BO that has not been
previously mapped, and the error path in panfrost_ioctl_create_bo()
can call drm_gem_object_put_unlocked() (which in turn calls
panfrost_mmu_unmap()) on a BO that has not been mapped yet.
Keep track of the mapped/unmapped state to avoid such issues.
Fixes: f3ba91228e8e ("drm/panfrost: Add initial panfrost driver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190618081343.16927-1-boris.brezillon@collabora.com
Diffstat (limited to 'drivers/gpu/drm/gma500/gma_display.c')
0 files changed, 0 insertions, 0 deletions