* Patch "spi: armada-3700: Remove spi_master_put in a3700_spi_remove()" has been added to the 4.10-stable tree
@ 2017-05-09 9:21 gregkh
0 siblings, 0 replies; only message in thread
From: gregkh @ 2017-05-09 9:21 UTC (permalink / raw)
To: weiyongjun1, broonie, gregkh; +Cc: stable, stable-commits
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 <stable@vger.kernel.org> know about it.
>From e92f0051c0c65d7bee989884a233cfcd80303bdf Mon Sep 17 00:00:00 2001
From: Wei Yongjun <weiyongjun1@huawei.com>
Date: Sun, 5 Feb 2017 15:49:40 +0000
Subject: spi: armada-3700: Remove spi_master_put in a3700_spi_remove()
From: Wei Yongjun <weiyongjun1@huawei.com>
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")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
drivers/spi/spi-armada-3700.c | 1 -
1 file changed, 1 deletion(-)
--- a/drivers/spi/spi-armada-3700.c
+++ b/drivers/spi/spi-armada-3700.c
@@ -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 weiyongjun1@huawei.com 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-05-09 9:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-09 9:21 Patch "spi: armada-3700: Remove spi_master_put in a3700_spi_remove()" has been added to the 4.10-stable tree gregkh
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.