diff options
Diffstat (limited to 'kernel/sys.c')
-rw-r--r-- | kernel/sys.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/sys.c b/kernel/sys.c index fd5c71006775..98489d82801b 100644 --- a/kernel/sys.c +++ b/kernel/sys.c | |||
@@ -517,7 +517,8 @@ EXPORT_SYMBOL_GPL(srcu_notifier_call_chain); | |||
517 | void srcu_init_notifier_head(struct srcu_notifier_head *nh) | 517 | void srcu_init_notifier_head(struct srcu_notifier_head *nh) |
518 | { | 518 | { |
519 | mutex_init(&nh->mutex); | 519 | mutex_init(&nh->mutex); |
520 | init_srcu_struct(&nh->srcu); | 520 | if (init_srcu_struct(&nh->srcu) < 0) |
521 | BUG(); | ||
521 | nh->head = NULL; | 522 | nh->head = NULL; |
522 | } | 523 | } |
523 | 524 | ||