Re: [PATCH] spi: meson-spicc: Fix double-put in remove path
From: Markus Elfring
Date: Sun Mar 22 2026 - 11:41:28 EST
> 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