summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/kvec/errors.rs
diff options
context:
space:
mode:
authorFrancesco Valla <francesco@valla.it>2026-11-08 18:41:17 +0100
committerMark Brown <broonie@kernel.org>2026-11-10 00:58:38 +0000
commit9060f5ba658c9b0a7332be55b3d8abfc2b08618b (patch)
treedbf6e489c47819fadfdc9cc1f002a3eb48c187f0 /rust/kernel/alloc/kvec/errors.rs
parent6c4c687d765de1d3b15e67823a8649cd527d60f7 (diff)
spi: virtio: move teardown to .remove()
The .remove() callback is not marked as optional for a virtio_driver, and thus a missing one is a bug. Moreover, the virtio framework expects a driver to reset the device it controls during teardown and explicitly checks for this reading the device status and WARNing in case it is still running. Any devm cleanup action gets however called after that check, leading to the WARN_ON condition to always be true for spi-virtio; thus, an empty remove() is not an option. Move the cleanup actions to the .remove() callback of the driver and adapt the surrounding code to the new behavior. Fixes: f98cabe3f6cf ("SPI: Add virtio SPI driver") Signed-off-by: Francesco Valla <francesco@valla.it> Link: https://patch.msgid.link/20261108-spi_virtio_remove-v1-1-fda5f0996290@valla.it Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions