From: Andrew Morton Cc: Gautham R Shenoy Signed-off-by: Andrew Morton --- kernel/sys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN kernel/sys.c~extend-notifier_call_chain-to-count-nr_calls-made-fixes-2 kernel/sys.c --- a/kernel/sys.c~extend-notifier_call_chain-to-count-nr_calls-made-fixes-2 +++ a/kernel/sys.c @@ -161,7 +161,7 @@ static int __kprobes notifier_call_chain ret = nb->notifier_call(nb, val, v); if (nr_calls) - *nr_calls ++; + (*nr_calls)++; if ((ret & NOTIFY_STOP_MASK) == NOTIFY_STOP_MASK) break; _