[PATCH] spi: meson-spicc: Fix double-put in remove path

Markus Elfring Markus.Elfring at web.de
Sun Mar 22 08:40:59 PDT 2026


> meson_spicc_probe() registers the controller with
> devm_spi_register_controller(), so teardown already drops the
> controller reference via devm cleanup.

Were any source code analysis tools involved here?


> Calling spi_controller_put() again in meson_spicc_remove()
> causes a double-put.

Do any contributors care more for another development requirement?
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v7.0-rc4#n94

Regards,
Markus



More information about the linux-arm-kernel mailing list