From: Mark Brown Date: Wed, 22 Apr 2026 14:10:22 +0000 (+0100) Subject: spi: fix resource leaks on device setup failure X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=16ab65df5d867961a79cef366cdb33f09ebda603;p=thirdparty%2Flinux.git spi: fix resource leaks on device setup failure Johan Hovold says: Make sure to call controller cleanup() if spi_setup() fails while registering a device to avoid leaking any resources allocated by setup(). --- 16ab65df5d867961a79cef366cdb33f09ebda603