Skip to contentSkip to conversation

Patch "crypto: caam - Fix null dereference at error path" has been added to the 4.15-stable tree

PATCH [email protected] 1 participant 1 message Apr 5, 2018

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: caam - Fix null dereference at error path

to the 4.15-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-caam-fix-null-dereference-at-error-path.patch
and it can be found in the queue-4.15 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 b85149f6f5d5a9279f29a73b2e95342f4d465e73 Mon Sep 17 00:00:00 2001

From: Rui Miguel Silva <[email protected]>
Date: Thu, 22 Feb 2018 14:22:47 +0000
Subject: crypto: caam - Fix null dereference at error path
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

From: Rui Miguel Silva <[email protected]>

commit b85149f6f5d5a9279f29a73b2e95342f4d465e73 upstream.

caam_remove already removes the debugfs entry, so we need to remove the one immediately before calling caam_remove.

This fix a NULL dereference at error paths is caam_probe fail.

Fixes 67c2315def06 ("crypto: caam - add Queue Interface (QI) backend support")
---
 drivers/crypto/caam/ctrl.c |    3 ---
 1 file changed, 3 deletions(-)
drivers/crypto/caam/ctrl.c +0 -3
@@ -813,9 +813,6 @@ static int caam_probe(struct platform_de
 	return 0;
 
 caam_remove:
-#ifdef CONFIG_DEBUG_FS
-	debugfs_remove_recursive(ctrlpriv->dfs_root);
-#endif
 	caam_remove(pdev);
 	return ret;
 

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

queue-4.15/crypto-caam-fix-null-dereference-at-error-path.patch