Skip to content
Unverified Commit 55a8b42e authored by Pan Bian's avatar Pan Bian Committed by Mark Brown
Browse files

spi: altera: Fix memory leak on error path



Release master that have been previously allocated if the number of
chipselect is invalid.

Fixes: 8e04187c ("spi: altera: add SPI core parameters support via platform data.")
Signed-off-by: default avatarPan Bian <bianpan2016@163.com>
Reviewed-by: default avatarTom Rix <trix@redhat.com>
Link: https://lore.kernel.org/r/20210120082635.49304-1-bianpan2016@163.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 4d163ad7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment