Re: [PATCH 0/2] spi: fix resource leaks on device setup failure

From: Johan Hovold

Date: Fri Apr 10 2026 - 11:56:34 EST


On Fri, Apr 10, 2026 at 05:49:05PM +0200, Johan Hovold wrote:
> Make sure to call controller cleanup() if spi_setup() fails while
> registering a device to avoid leaking any resources allocated by
> setup().

> Changes in v2:
> - only call cleanup() if spi_setup() fails during registration
> - use spi_cleanup() helper
> - fix controller cleanup() documentation (new patch)

Bah, I missed to add "v2" to Subject. Let me know if you prefer me to
send a v3...

Johan