Commit 6484567f authored by Philip R. Auld's avatar Philip R. Auld Committed by Linus Torvalds

[PATCH] fix memory leak in free_percpu

This fixes a memory leak where the percpu internal structure is not freed. 
Repeated add/remove device illustrates the leak nicely.
Signed-off-by: default avatarPhilip R. Auld <pauld@egenera.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 47227f5d
......@@ -2573,6 +2573,7 @@ free_percpu(const void *objp)
continue;
kfree(p->ptrs[i]);
}
kfree(p);
}
EXPORT_SYMBOL(free_percpu);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment