Commit a3367f5f authored by Rob Clark's avatar Rob Clark

drm/msm: Remove dangling submitqueue references

Currently it doesn't matter, since we free the ctx immediately.  But
when we start refcnt'ing the ctx, we don't want old dangling list
entries to hang around.
Signed-off-by: default avatarRob Clark <robdclark@chromium.org>
Reviewed-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
Reviewed-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent 08d3ab4b
...@@ -49,8 +49,10 @@ void msm_submitqueue_close(struct msm_file_private *ctx) ...@@ -49,8 +49,10 @@ void msm_submitqueue_close(struct msm_file_private *ctx)
* No lock needed in close and there won't * No lock needed in close and there won't
* be any more user ioctls coming our way * be any more user ioctls coming our way
*/ */
list_for_each_entry_safe(entry, tmp, &ctx->submitqueues, node) list_for_each_entry_safe(entry, tmp, &ctx->submitqueues, node) {
list_del(&entry->node);
msm_submitqueue_put(entry); msm_submitqueue_put(entry);
}
} }
int msm_submitqueue_create(struct drm_device *drm, struct msm_file_private *ctx, int msm_submitqueue_create(struct drm_device *drm, struct msm_file_private *ctx,
......
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