Skip to content
Snippets Groups Projects
Commit 82189b98 authored by Catalin Marinas's avatar Catalin Marinas Committed by Linus Torvalds
Browse files

[PATCH] Fix device_attribute memory leak in device_del


dev->devt_attr is allocated in device_add() but it is never freed in
device_del() in the drivers/base/core.c file (reported by kmemleak).

Signed-off-by: default avatarCatalin Marinas <catalin.marinas@gmail.com>
Acked-by: default avatarGreg KH <greg@kroah.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 533221fb
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment