public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] drm/msm: Fix memory leak in msm_submitqueue_create()
@ 2020-06-12  9:37 Markus Elfring
  2020-06-12 10:02 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Markus Elfring @ 2020-06-12  9:37 UTC (permalink / raw)
  To: Bernard Zhao, dri-devel, freedreno, linux-arm-msm,
	opensource.kernel
  Cc: linux-kernel, Daniel Vetter, David Airlie, Rob Clark, Sean Paul

> In fucntin 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.

I suggest to improve also this change description.
How do you think about a wording variant like the following?

   Release the GPU submission queue object after an input parameter validation failed.


Would you like to add the tag “Fixes” to the commit message?
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?id=b791d1bdf9212d944d749a5c7ff6febdba241771#n183


How do you think about to reorder any statements for this function implementation?

Regards,
Markus

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-06-12 10:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-12  9:37 [PATCH] drm/msm: Fix memory leak in msm_submitqueue_create() Markus Elfring
2020-06-12 10:02 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox