public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next 0/2] Fix memory leaks for kobject
@ 2024-09-25 12:07 Gaosheng Cui
  2024-09-25 12:07 ` [PATCH -next 1/2] kobject: fix memory leak in kset_register() due to uninitialized kset->kobj.ktype Gaosheng Cui
  2024-09-25 12:07 ` [PATCH -next 2/2] kobject: fix memory leak when kobject_add_varg() returns error Gaosheng Cui
  0 siblings, 2 replies; 8+ messages in thread
From: Gaosheng Cui @ 2024-09-25 12:07 UTC (permalink / raw)
  To: gregkh, rafael, akpm, thunder.leizhen, cuigaosheng1, wangweiyang2
  Cc: linux-kernel, stable

Fix two memory leaks for kobject name, thanks!

Gaosheng Cui (2):
  kobject: fix memory leak in kset_register() due to uninitialized
    kset->kobj.ktype
  kobject: fix memory leak when kobject_add_varg() returns error

 lib/kobject.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

-- 
2.25.1


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

end of thread, other threads:[~2024-09-26  8:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-25 12:07 [PATCH -next 0/2] Fix memory leaks for kobject Gaosheng Cui
2024-09-25 12:07 ` [PATCH -next 1/2] kobject: fix memory leak in kset_register() due to uninitialized kset->kobj.ktype Gaosheng Cui
2024-09-25 12:18   ` Greg KH
2024-09-25 12:19   ` Greg KH
     [not found]     ` <c928dc7c-3418-d6cb-9503-e0c9a48adc1c@huawei.com>
2024-09-26  8:17       ` Greg KH
2024-09-25 12:07 ` [PATCH -next 2/2] kobject: fix memory leak when kobject_add_varg() returns error Gaosheng Cui
2024-09-25 12:18   ` Greg KH
2024-09-25 13:25   ` kernel test robot

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