]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] Fix device_attribute memory leak in device_del
authorCatalin Marinas <catalin.marinas@gmail.com>
Sat, 25 Nov 2006 19:09:30 +0000 (11:09 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Sat, 25 Nov 2006 21:28:33 +0000 (13:28 -0800)
commit82189b9807e05ea8d1f69de5bf92eaf244a0eb12
treeecc6f1cf933a249ea1a9a9858a7a90878ec4162b
parent533221fbaf001692d5db646f84f7d033fac78cc7
[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: Catalin Marinas <catalin.marinas@gmail.com>
Acked-by: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/base/core.c