mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
net: dsa: vitesse-vsc73xx: Fix SPI device reference leak in vsc73xx_spi_probe()
spi_dev_get() takes a reference on the SPI device, but neither the probe error paths nor vsc73xx_spi_remove() ever release it, so the spi_device can never be freed after the driver has been unbound. Release the reference on both probe error paths and in remove(). Cc: stable+noautosel@kernel.org # untested fix to unlikely driver error path Signed-off-by: Wentao Liang <vulab@iscas.ac.cn> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Linus Walleij <linusw@kernel.org> Link: https://patch.msgid.link/20260917104920.2147568-1-vulab@iscas.ac.cn Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
d9750b3c4c
commit
08dfb3106c
1 changed files with 8 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue