diff options
author | Peter Ujfalusi <[email protected]> | 2023-01-27 14:00:29 +0200 |
---|---|---|
committer | Mark Brown <[email protected]> | 2023-01-27 12:14:12 +0000 |
commit | 955a6f131a50c3685c560ef7b75880d272337b33 (patch) | |
tree | fbb566a27906025e7eec4fbfd5adf27da8f5017e /scripts/gdb/linux/config.py | |
parent | 6bc4d1b714aafc0ee3c7649c36aa19998b4c11f9 (diff) |
ASoC: SOF: Avoid double decrementing use_count in sof_widget_setup on error
The sof_widget_free() on the error path will decrement the use count and if
we jump to widget_free: then the use_count will be decremented by two,
which is not correct as we only incremented once with 1.
Signed-off-by: Peter Ujfalusi <[email protected]>
Reviewed-by: Pierre-Louis Bossart <[email protected]>
Reviewed-by: Ranjani Sridharan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/config.py')
0 files changed, 0 insertions, 0 deletions