mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-20 19:23:40 +00:00
spi: fix resource leaks on device setup failure
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().
This commit is contained in:
commit
16ab65df5d
2 changed files with 38 additions and 25 deletions
Loading…
Add table
Add a link
Reference in a new issue