mmotm: slqb correctly return value for notification handler
PATCH 1/1 mmotm: slqb correctly return value for notification handler
Correctly return value for notification handler. The bug causes other handlers are ignored and panic kernel.
--- mm/slqb.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
mm/slqb.c +4 -1
@@ -2846,7 +2846,10 @@ static int slab_memory_callback(struct nbreak ; } - ret =notifier_from_errno (ret); +if (ret) + ret =notifier_from_errno (ret); +else + ret =NOTIFY_OK ;return ret; }
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Pekka Enberg
AppliedQuoted 4 lines · Shaohua Li
Correctly return value for notification handler. The bug causes other handlers are ignored and panic kernel.
Signed-off-by Shaohua Li <[email protected]>
Applied to slab.git, thanks!
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>