aboutsummaryrefslogtreecommitdiff
path: root/lib/crypto/mpi
diff options
context:
space:
mode:
authorPeter Ujfalusi <[email protected]>2023-09-14 15:47:25 +0300
committerMark Brown <[email protected]>2023-09-14 15:32:43 +0100
commitbb0216d4db9ecaa51af45d8504757becbe5c050d (patch)
treea4c7ef8ee62158821c60f1f9d416804168c9685a /lib/crypto/mpi
parent6ba59c008f08e84b3c87be10f3391c9735e4f833 (diff)
ASoC: SOF: sof-audio: Fix DSP core put imbalance on widget setup failure
In case the widget setup fails we should only decrement the core usage count if the sof_widget_free_unlocked() has not been called as part of the error handling. sof_widget_free_unlocked() calls snd_sof_dsp_core_put() and the additional core_put will cause imbalance in core usage count. Use the existing use_count_decremented to handle this issue. Signed-off-by: Peter Ujfalusi <[email protected]> Reviewed-by: Ranjani Sridharan <[email protected]> Reviewed-by: Bard Liao <[email protected]> Reviewed-by: Pierre-Louis Bossart <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/crypto/mpi')
0 files changed, 0 insertions, 0 deletions