]> git.baikalelectronics.ru Git - kernel.git/commit
rcu: Make kfree_rcu() ignore NULL pointers
authorPaul E. McKenney <paulmck@linux.ibm.com>
Tue, 9 Apr 2019 14:48:18 +0000 (07:48 -0700)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Tue, 28 May 2019 16:02:57 +0000 (09:02 -0700)
commitbca7dc986acf0c5c64d053c8cba24fec72609156
treefd280d56ab640d856ac77c75060d62ea73a2daea
parent923d15d37df1d3250d28e4e9248cfc037827da32
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: Andriy Shevchenko <andriy.shevchenko@linux.intel.com>
Reported-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
Reviewed-by: Andriy Shevchenko <andriy.shevchenko@linux.intel.com>
include/linux/rcupdate.h