[PATCH v2] drm/amdkfd: Fix memory leaks according to error branches
Markus.Elfring at web.de
Sat Jun 20 09:20:24 UTC 2020
> The function kobject_init_and_add alloc memory like:
> ->kmalloc_slab, in err branch this memory not free. If use
> kmemleak, this path maybe catched.
> These changes are to add kobject_put in kobject_init_and_add
> failed branch, fix potential memleak.
I suggest to improve this change description.
* Can an other wording variant be nicer?
* Will the tag “Fixes” become helpful for the commit message?
More information about the amd-gfx