spi: sprd: call pm_runtime_put if pm_runtime_get_sync fails
Subsystems (2)
Quoted 3 lines
Call to
pm_runtime_get_syncincrements counter even in case of failure leading to incorrect ref count.
Callpm_runtime_put_noidleifpm_runtime_get_syncfails.
How do you think about a wording variant like the following?
Change description:
The PM runtime reference counter is generally incremented by a call of the function “pm_runtime_get_sync”.
Thus call the function “pm_runtime_put_noidle” also in one error case to keep the reference counting consistent.
Would you like to add the tag “Fixes” to the commit message?
Regards,
Markus