Commit 176fda5
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 <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Mark Brown <[email protected]>1 parent 4701f33 commit 176fda5
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2954 | 2954 | | |
2955 | 2955 | | |
2956 | 2956 | | |
| 2957 | + | |
2957 | 2958 | | |
2958 | 2959 | | |
2959 | | - | |
| 2960 | + | |
| 2961 | + | |
| 2962 | + | |
| 2963 | + | |
2960 | 2964 | | |
2961 | 2965 | | |
2962 | 2966 | | |
| |||
0 commit comments