Patch "nullb: fix error return code in null_init()" has been added to the 4.14-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
nullb: fix error return code in null_init()
to the 4.14-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
nullb-fix-error-return-code-in-null_init.patch
and it can be found in the queue-4.14 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Mon Dec 18 13:29:00 CET 2017
From: Wei Yongjun <[email protected]>
Date: Tue, 17 Oct 2017 12:11:46 +0000
Subject: nullb: fix error return code in null_init()
From: Wei Yongjun <[email protected]>
[ Upstream commit 30c516d750396c5f3ec9cb04c9e025c25e91495e ]
Fix to return error code -ENOMEM from the null_alloc_dev() error handling case instead of 0, as done elsewhere in this function.
--- drivers/block/null_blk.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/block/null_blk.c +3 -1
@@ -1985,8 +1985,10 @@ static int __init null_init(void)for (i =0 ; i < nr_devices; i++) { dev =null_alloc_dev (); -if (!dev) +if (!dev) { + ret = -ENOMEM ; goto err_dev; + } ret =null_add_dev (dev);if (ret) {null_free_dev (dev);
Patches currently in stable-queue which might be from [email protected] are
queue-4.14/nullb-fix-error-return-code-in-null_init.patch queue-4.14/mlxsw-spectrum-fix-error-return-code-in-mlxsw_sp_port_create.patch