Skip to contentSkip to conversation

Patch "crypto: marvell/cesa - fix test in mv_cesa_dev_dma_init()" has been added to the 4.3-stable tree

PATCH [email protected] 1 participant 1 message Feb 14, 2016

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

crypto: marvell/cesa - fix test in mv_cesa_dev_dma_init()

to the 4.3-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:
crypto-marvell-cesa-fix-test-in-mv_cesa_dev_dma_init.patch
and it can be found in the queue-4.3 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 8a3978ad55fb4c0564d285fb2f6cdee2313fce01 Mon Sep 17 00:00:00 2001

From: Boris BREZILLON <[email protected]>
Date: Fri, 5 Feb 2016 17:45:48 +0100
Subject: crypto: marvell/cesa - fix test in mv_cesa_dev_dma_init()

From: Boris BREZILLON <[email protected]>

commit 8a3978ad55fb4c0564d285fb2f6cdee2313fce01 upstream.

We are checking twice if dma->cache_pool is not NULL but are never testing dma->padding_pool value.

---
 drivers/crypto/marvell/cesa.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/marvell/cesa.c +1 -1
@@ -306,7 +306,7 @@ static int mv_cesa_dev_dma_init(struct m
 		return -ENOMEM;
 
 	dma->padding_pool = dmam_pool_create("cesa_padding", dev, 72, 1, 0);
-	if (!dma->cache_pool)
+	if (!dma->padding_pool)
 		return -ENOMEM;
 
 	cesa->dma = dma;

Patches currently in stable-queue which might be from [email protected] are

queue-4.3/mtd-mtdpart-fix-add_mtd_partitions-error-path.patch queue-4.3/crypto-marvell-cesa-fix-test-in-mv_cesa_dev_dma_init.patch queue-4.3/mtd-nand-fix-shutdown-reboot-for-multi-chip-systems.patch