Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spi: Fix reference count leak in slave_show()
Fix a reference count leak in slave_show() by properly putting the device reference obtained from device_find_any_child(). Fixes: 6c36406 ("spi: core: Add support for registering SPI slave controllers") Fixes: c21b083 ("spi: Use device_find_any_child() instead of custom approach") Signed-off-by: Miaoqian Lin <linmq006@gmail.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://patch.msgid.link/20250319032305.70340-1-linmq006@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
- Loading branch information