Commit 63fe298
ASoC: codecs: wcd9375: Fix double free of regulator supplies
Driver gets regulator supplies in probe path with
devm_regulator_bulk_get(), so should not call regulator_bulk_free() in
error and remove paths to avoid double free.
Fixes: 216d041 ("ASoC: codecs: wcd937x: Remove separate handling for vdd-buck supply")
Cc: stable@vger.kernel.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20250526-b4-b4-asoc-wcd9395-vdd-px-fixes-v1-3-0b8a2993b7d3@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>1 parent dc59189 commit 63fe298
1 file changed
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2944 | 2944 | | |
2945 | 2945 | | |
2946 | 2946 | | |
2947 | | - | |
2948 | | - | |
| 2947 | + | |
2949 | 2948 | | |
2950 | | - | |
2951 | 2949 | | |
2952 | 2950 | | |
2953 | 2951 | | |
| |||
2983 | 2981 | | |
2984 | 2982 | | |
2985 | 2983 | | |
2986 | | - | |
2987 | 2984 | | |
2988 | 2985 | | |
2989 | 2986 | | |
| |||
3000 | 2997 | | |
3001 | 2998 | | |
3002 | 2999 | | |
3003 | | - | |
3004 | 3000 | | |
3005 | 3001 | | |
3006 | 3002 | | |
| |||
0 commit comments