Skip to contentSkip to conversation

Patch "spi: armada-3700: Remove spi_master_put in a3700_spi_remove()" has been added to the 4.10-stable tree

PATCH [email protected] 1 participant 1 message May 9, 2017

Subsystems (2)
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

    spi: armada-3700: Remove spi_master_put in a3700_spi_remove()

to the 4.10-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:

     spi-armada-3700-remove-spi_master_put-in-a3700_spi_remove.patch

and it can be found in the queue-4.10 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 e92f0051c0c65d7bee989884a233cfcd80303bdf Mon Sep 17 00:00:00 2001

From: Wei Yongjun <[email protected]>
Date: Sun, 5 Feb 2017 15:49:40 +0000
Subject: spi: armada-3700: Remove spi_master_put in a3700_spi_remove()

From: Wei Yongjun <[email protected]>

commit e92f0051c0c65d7bee989884a233cfcd80303bdf upstream.

The call to spi_master_put() in a3700_spi_remove() is redundant since the master is registered using devm_spi_register_master() and no reference hold by using spi_master_get() in a3700_spi_remove().

This is detected by Coccinelle semantic patch.

Fixes 5762ab71eb24 ("spi: Add support for Armada 3700 SPI Controller")
---
 drivers/spi/spi-armada-3700.c |    1 -
 1 file changed, 1 deletion(-)
drivers/spi/spi-armada-3700.c +0 -1
@@ -901,7 +901,6 @@ static int a3700_spi_remove(struct platf
 	struct a3700_spi *spi = spi_master_get_devdata(master);
 
 	clk_unprepare(spi->clk);
-	spi_master_put(master);
 
 	return 0;
 }

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

queue-4.10/scsi-qedi-fix-possible-memory-leak-in-qedi_iscsi_update_conn.patch queue-4.10/spi-armada-3700-remove-spi_master_put-in-a3700_spi_remove.patch