Skip to contentSkip to conversation

Patch "crypto: atmel-sha - fix atmel_sha_remove()" has been added to the 4.4-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: atmel-sha - fix atmel_sha_remove()

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:
crypto-atmel-sha-fix-atmel_sha_remove.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 d961436c11482e974b702c8324426208f00cd7c4 Mon Sep 17 00:00:00 2001

From: Cyrille Pitchen <[email protected]>
Date: Fri, 5 Feb 2016 13:45:12 +0100
Subject: crypto: atmel-sha - fix atmel_sha_remove()

From: Cyrille Pitchen <[email protected]>

commit d961436c11482e974b702c8324426208f00cd7c4 upstream.

Since atmel_sha_probe() uses devm_xxx functions to allocate resources, atmel_sha_remove() should no longer explicitly release them.

Fixes b0e8b3417a62 ("crypto: atmel - use devm_xxx() managed function")
---
 drivers/crypto/atmel-sha.c |    7 -------
 1 file changed, 7 deletions(-)
drivers/crypto/atmel-sha.c +0 -7
@@ -1484,13 +1484,6 @@ static int atmel_sha_remove(struct platf
 	if (sha_dd->caps.has_dma)
 		atmel_sha_dma_cleanup(sha_dd);
 
-	iounmap(sha_dd->io_base);
-
-	clk_put(sha_dd->iclk);
-
-	if (sha_dd->irq >= 0)
-		free_irq(sha_dd->irq, sha_dd);
-
 	return 0;
 }
 

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

queue-4.4/crypto-atmel-sha-remove-calls-of-clk_prepare-from-atomic-contexts.patch queue-4.4/crypto-atmel-sha-fix-atmel_sha_remove.patch