Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bf59aa00 authored by Bernard Zhao's avatar Bernard Zhao Committed by Greg Kroah-Hartman
Browse files

drm/msm: fix potential memleak in error branch



[ Upstream commit 177d3819633cd520e3f95df541a04644aab4c657 ]

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>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent d4d0e6c0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment