]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] Allow NULL pointers in percpu_free
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 7 Dec 2006 04:32:37 +0000 (20:32 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Thu, 7 Dec 2006 16:39:22 +0000 (08:39 -0800)
commita120586873d3d64de93bd6d593d237e131994e58
treeae284884e23268e867f748a2ab52353cf2390e89
parentb30973f877fea1a3fb84e05599890fcc082a88e5
[PATCH] Allow NULL pointers in percpu_free

The patch (as824b) makes percpu_free() ignore NULL arguments, as one would
expect for a deallocation routine.  (Note that free_percpu is #defined as
percpu_free in include/linux/percpu.h.) A few callers are updated to remove
now-unneeded tests for NULL.  A few other callers already seem to assume
that passing a NULL pointer to percpu_free() is okay!

The patch also removes an unnecessary NULL check in percpu_depopulate().

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/acpi/cstate.c
block/blktrace.c
mm/allocpercpu.c
net/ipv6/af_inet6.c