diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2021-08-10 22:22:30 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-08-18 13:57:04 +0100 |
commit | 02cea7039ad52593ee05824c19233366914df9b2 (patch) | |
tree | ce436a9f43c2dbd561754a9dd026b4ad1d28d6bc /drivers/spi/spi-tegra20-slink.c | |
parent | 0b89fc0a367edab09065af722894d186bd0ccb0d (diff) |
spi: tegra20-slink: remove spi_master_put() in tegra_slink_remove()
spi_master_put() is already called in spi_unregister_master(), or it
will lead a double decrement refcount.
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20210810142230.2220453-1-yangyingliang@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-tegra20-slink.c')
-rw-r--r-- | drivers/spi/spi-tegra20-slink.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/spi/spi-tegra20-slink.c b/drivers/spi/spi-tegra20-slink.c index deff16ba6d58..ebd27f883033 100644 --- a/drivers/spi/spi-tegra20-slink.c +++ b/drivers/spi/spi-tegra20-slink.c @@ -1154,8 +1154,6 @@ static int tegra_slink_remove(struct platform_device *pdev) if (tspi->rx_dma_chan) tegra_slink_deinit_dma_param(tspi, true); - spi_master_put(master); - return 0; } |