Skip to content
Commit 177d3819 authored by Bernard Zhao's avatar Bernard Zhao Committed by Rob Clark
Browse files

drm/msm: fix potential memleak in error branch



In function msm_submitqueue_create, the queue is a local
variable, in return -EINVAL branch, queue didn`t add to ctx`s
list yet, and also didn`t kfree, this maybe bring in potential
memleak.

Signed-off-by: default avatarBernard Zhao <bernard@vivo.com>
[trivial commit msg fixup]
Signed-off-by: default avatarRob Clark <robdclark@chromium.org>
parent 5fddd4f5
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