Commit ff61c495 authored by Shaohua Li's avatar Shaohua Li Committed by Pekka Enberg

slqb: correctly return value for notification handler

Correctly return value for notification handler. The bug causes other
handlers are ignored and panic kernel.
Signed-off-by: default avatarShaohua Li <shaohua.li@intel.com>
Signed-off-by: default avatarPekka Enberg <penberg@cs.helsinki.fi>
parent 07a7ee82
......@@ -2846,7 +2846,10 @@ static int slab_memory_callback(struct notifier_block *self,
break;
}
if (ret)
ret = notifier_from_errno(ret);
else
ret = NOTIFY_OK;
return ret;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment