]> Git Repo - linux.git/commit
rcu: Make kfree_rcu() ignore NULL pointers
authorPaul E. McKenney <[email protected]>
Tue, 9 Apr 2019 14:48:18 +0000 (07:48 -0700)
committerPaul E. McKenney <[email protected]>
Tue, 28 May 2019 16:02:57 +0000 (09:02 -0700)
commit12edff045bc6dd3ab1565cc02fa4841803c2a633
treefd280d56ab640d856ac77c75060d62ea73a2daea
parent3ae976a7e3e87438b8439a01aeb79d4866b1c444
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 <[email protected]>
Reported-by: Christoph Hellwig <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
Reviewed-by: Andriy Shevchenko <[email protected]>
include/linux/rcupdate.h
This page took 0.05305 seconds and 4 git commands to generate.