aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/notifier.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/notifier.c')
-rw-r--r--kernel/notifier.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/notifier.c b/kernel/notifier.c
index acd24e7643eb..348a82962f2c 100644
--- a/kernel/notifier.c
+++ b/kernel/notifier.c
@@ -71,7 +71,7 @@ static int notifier_chain_unregister(struct notifier_block **nl,
71 * @returns: notifier_call_chain returns the value returned by the 71 * @returns: notifier_call_chain returns the value returned by the
72 * last notifier function called. 72 * last notifier function called.
73 */ 73 */
74static int __kprobes notifier_call_chain(struct notifier_block **nl, 74static int __kprobes notrace notifier_call_chain(struct notifier_block **nl,
75 unsigned long val, void *v, 75 unsigned long val, void *v,
76 int nr_to_call, int *nr_calls) 76 int nr_to_call, int *nr_calls)
77{ 77{
@@ -217,7 +217,7 @@ int blocking_notifier_chain_register(struct blocking_notifier_head *nh,
217 * not yet working and interrupts must remain disabled. At 217 * not yet working and interrupts must remain disabled. At
218 * such times we must not call down_write(). 218 * such times we must not call down_write().
219 */ 219 */
220 if (unlikely(system_state == SYSTEM_BOOTING)) 220 if (unlikely(system_state < SYSTEM_RUNNING))
221 return notifier_chain_register(&nh->head, n); 221 return notifier_chain_register(&nh->head, n);
222 222
223 down_write(&nh->rwsem); 223 down_write(&nh->rwsem);