diff options
author | Paul E. McKenney | 2019-04-09 16:48:18 +0200 |
---|---|---|
committer | Paul E. McKenney | 2019-05-28 18:02:57 +0200 |
commit | 12edff045bc6dd3ab1565cc02fa4841803c2a633 (patch) | |
tree | fd280d56ab640d856ac77c75060d62ea73a2daea /drivers/powercap/intel_rapl.c | |
parent | rcu: Correctly unlock root node in rcu_check_gp_start_stall() (diff) | |
download | kernel-qcow2-linux-12edff045bc6dd3ab1565cc02fa4841803c2a633.tar.gz kernel-qcow2-linux-12edff045bc6dd3ab1565cc02fa4841803c2a633.tar.xz kernel-qcow2-linux-12edff045bc6dd3ab1565cc02fa4841803c2a633.zip |
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>
Diffstat (limited to 'drivers/powercap/intel_rapl.c')
0 files changed, 0 insertions, 0 deletions