commit | 108210466eaf3f9e0e18e250c3af4f2525963a60 | [log] [tgz] |
---|---|---|
author | Paul E. McKenney <paulmck@linux.ibm.com> | Tue Apr 09 07:48:18 2019 -0700 |
committer | Paul E. McKenney <paulmck@linux.ibm.com> | Tue Apr 09 08:12:44 2019 -0700 |
tree | 3e52707c162381b000121d679257a539c887a28e | |
parent | 127a3de6dcb33e3e79aa9f9a341f424026a557bc [diff] |
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>