mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-23 21:39:34 +07:00
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: Rob Clark <robdclark@chromium.org> Reviewed-by: Jordan Crouse <jcrouse@codeaurora.org> Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
This commit is contained in:
parent
08d3ab4b46
commit
a3367f5ffe
@ -49,8 +49,10 @@ void msm_submitqueue_close(struct msm_file_private *ctx)
|
||||
* No lock needed in close and there won't
|
||||
* 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);
|
||||
}
|
||||
}
|
||||
|
||||
int msm_submitqueue_create(struct drm_device *drm, struct msm_file_private *ctx,
|
||||
|
Loading…
Reference in New Issue
Block a user