Skip to content
Commit 12edff04 authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

rcu: Make kfree_rcu() ignore NULL pointers



This commit makes the kfree_rcu() macro's semantics be consistent
with the likes of kfree() by adding a check for NULL pointers, so
that kfree_rcu(NULL, ...) is a no-op.

Reported-by: default avatarAndriy Shevchenko <andriy.shevchenko@linux.intel.com>
Reported-by: default avatarChristoph Hellwig <hch@infradead.org>
Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.ibm.com>
Reviewed-by: default avatarAndriy Shevchenko <andriy.shevchenko@linux.intel.com>
parent 3ae976a7
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