diff options
author | Pan Bian <bianpan2016@163.com> | 2021-01-20 00:26:35 -0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-01-20 16:46:50 +0000 |
commit | 55a8b42e8645a6dab88674a30cb6ed328e660680 (patch) | |
tree | cfea7118a63f5a9c5cddbe3c671a0b9aa960987a /drivers/media/radio/saa7706h.c | |
parent | 4d163ad79b155c71bf30366dc38f8d2502f78844 (diff) | |
download | linux-55a8b42e8645a6dab88674a30cb6ed328e660680.tar.bz2 |
spi: altera: Fix memory leak on error path
Release master that have been previously allocated if the number of
chipselect is invalid.
Fixes: 8e04187c1bc7 ("spi: altera: add SPI core parameters support via platform data.")
Signed-off-by: Pan Bian <bianpan2016@163.com>
Reviewed-by: Tom Rix <trix@redhat.com>
Link: https://lore.kernel.org/r/20210120082635.49304-1-bianpan2016@163.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/media/radio/saa7706h.c')
0 files changed, 0 insertions, 0 deletions