summaryrefslogtreecommitdiff
path: root/include/mtd/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorFelix Gu <ustc.gu@gmail.com>2026-03-19 00:12:34 +0800
committerMark Brown <broonie@kernel.org>2026-03-23 14:51:59 +0000
commitef3d549e1deb3466c61f3b01d22fc3fe3e5efb08 (patch)
tree4e2a81a10b7d1cb8c35bfb269bad39bec897459e /include/mtd/git@git.tavy.me:linux.git
parentc369299895a591d96745d6492d4888259b004a9e (diff)
spi: sn-f-ospi: Fix resource leak in f_ospi_probe()
In f_ospi_probe(), when num_cs validation fails, it returns without calling spi_controller_put() on the SPI controller, which causes a resource leak. Use devm_spi_alloc_host() instead of spi_alloc_host() to ensure the SPI controller is properly freed when probe fails. Fixes: 1b74dd64c861 ("spi: Add Socionext F_OSPI SPI flash controller driver") Signed-off-by: Felix Gu <ustc.gu@gmail.com> Link: https://patch.msgid.link/20260319-sn-f-v1-1-33a6738d2da8@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/mtd/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions