Dongliang Mu 8311ee2164
spi: meson-spicc: fix memory leak in meson_spicc_remove
In meson_spicc_probe, the error handling code needs to clean up master
by calling spi_master_put, but the remove function does not have this
function call. This will lead to memory leak of spicc->master.

Reported-by: Dongliang Mu <mudongliangabcd@gmail.com>
Fixes: 454fa271bc4e("spi: Add Meson SPICC driver")
Signed-off-by: Dongliang Mu <mudongliangabcd@gmail.com>
Link: https://lore.kernel.org/r/20210720100116.1438974-1-mudongliangabcd@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2021-07-22 16:02:22 +01:00
..
2021-06-04 15:27:11 +01:00
2021-07-20 13:34:05 +01:00
2020-10-08 23:00:06 +01:00
2020-07-17 16:38:47 +01:00
2021-04-21 16:07:04 +01:00
2020-10-24 10:33:08 -07:00
2021-05-11 15:42:47 +01:00