diff options
| author | Wentao Liang <vulab@iscas.ac.cn> | 2026-09-17 10:49:20 +0000 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-09-22 18:15:24 -0700 |
| commit | 08dfb3106c0de3a2bf0adb0191264bfff03ed821 (patch) | |
| tree | 53700b9fe86c51363c0d703dba59beef0781d9e0 /include/linux/debugobjects.h | |
| parent | d9750b3c4c277b061df694f563a58c6df7b84912 (diff) | |
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>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
