]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
spi: fix resource leaks on device setup failure
authorMark Brown <broonie@kernel.org>
Wed, 22 Apr 2026 14:10:22 +0000 (15:10 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 22 Apr 2026 14:10:22 +0000 (15:10 +0100)
Johan Hovold <johan@kernel.org> says:

Make sure to call controller cleanup() if spi_setup() fails while
registering a device to avoid leaking any resources allocated by
setup().

1  2 
include/linux/spi/spi.h

Simple merge