Patch "[PATCH 029/135] lightnvm: add check after mempool allocation" has been added to the 4.4-stable tree
This is a note to let you know that I've just added the patch titled
[PATCH 029/135] lightnvm: add check after mempool allocation
to the 4.4-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:
0029-lightnvm-add-check-after-mempool-allocation.patch
and it can be found in the queue-4.4 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
47576e733b8fb27b0631e40543bb85ec1eb40230Mon Sep 17 00:00:00 2001
From: Javier Gonzalez <[email protected]>
Date: Tue, 12 Jan 2016 07:49:17 +0100
Subject: [PATCH 029/135] lightnvm: add check after mempool allocation
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[ Upstream commit 3bfbc6adbc5031e8a5907baa5beb27b41637742a ]
The mempool allocation might fail. Make sure to return error when it does, instead of causing a kernel panic.
--- drivers/lightnvm/rrpc.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/lightnvm/rrpc.c +2 -0
@@ -287,6 +287,8 @@ static int rrpc_move_valid_pages(struct } page =mempool_alloc (rrpc->page_pool,GFP_NOIO ); +if (!page) +return -ENOMEM ;while ((slot =find_first_zero_bit (rblk->invalid_pages, nr_pgs_per_blk)) < nr_pgs_per_blk) {
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/0029-lightnvm-add-check-after-mempool-allocation.patch