Commit b9a31d0d authored by Rob Clark's avatar Rob Clark

drm/msm: Clear msm_obj->sgt in put_pages()

Currently this doesn't matter since we keep the pages pinned until the
object is destroyed.  But when we start unpinning pages to allow objects
to be evicted to swap, it will.
Signed-off-by: default avatarRob Clark <robdclark@chromium.org>
Link: https://lore.kernel.org/r/20210405174532.1441497-4-robdclark@gmail.comSigned-off-by: default avatarRob Clark <robdclark@chromium.org>
parent 6afb0750
...@@ -162,6 +162,7 @@ static void put_pages(struct drm_gem_object *obj) ...@@ -162,6 +162,7 @@ static void put_pages(struct drm_gem_object *obj)
sg_free_table(msm_obj->sgt); sg_free_table(msm_obj->sgt);
kfree(msm_obj->sgt); kfree(msm_obj->sgt);
msm_obj->sgt = NULL;
} }
if (use_pages(obj)) if (use_pages(obj))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment