Skip to content
Snippets Groups Projects
user avatar
J. R. Okajima authored
When the gotten object is NULL (probably due to ENOMEM), kmemleak_erase() is
unnecessary here, It just sets NULL to where already is NULL.  Add a condition.

Acked-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Signed-off-by: default avatarJ. R. Okajima <hooanon05@yahoo.co.jp>
Signed-off-by: default avatarPekka Enberg <penberg@cs.helsinki.fi>
f3d8b53a
History
Name Last commit Last update