diff options
Diffstat (limited to 'block/blk-stat.c')
-rw-r--r-- | block/blk-stat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/block/blk-stat.c b/block/blk-stat.c index 0d8721a60db9..188b535cf4d6 100644 --- a/block/blk-stat.c +++ b/block/blk-stat.c | |||
@@ -210,7 +210,8 @@ static void blk_stat_free_callback_rcu(struct rcu_head *head) | |||
210 | 210 | ||
211 | void blk_stat_free_callback(struct blk_stat_callback *cb) | 211 | void blk_stat_free_callback(struct blk_stat_callback *cb) |
212 | { | 212 | { |
213 | call_rcu(&cb->rcu, blk_stat_free_callback_rcu); | 213 | if (cb) |
214 | call_rcu(&cb->rcu, blk_stat_free_callback_rcu); | ||
214 | } | 215 | } |
215 | EXPORT_SYMBOL_GPL(blk_stat_free_callback); | 216 | EXPORT_SYMBOL_GPL(blk_stat_free_callback); |
216 | 217 | ||