diff options
author | Cristian Ciocaltea <[email protected]> | 2023-09-07 20:10:04 +0300 |
---|---|---|
committer | Mark Brown <[email protected]> | 2023-09-11 13:34:37 +0100 |
commit | 9f8948db9849d202dee3570507d3a0642f92d632 (patch) | |
tree | 91f7640b4d55e61e554634b0e4c56738328edb67 /lib/netdev-notifier-error-inject.c | |
parent | 77bf613f0bf08c021309cdb5f84b5f630b829261 (diff) |
ASoC: cs35l41: Verify PM runtime resume errors in IRQ handler
The interrupt handler invokes pm_runtime_get_sync() without checking the
returned error code.
Add a proper verification and switch to pm_runtime_resume_and_get(), to
avoid the need to call pm_runtime_put_noidle() for decrementing the PM
usage counter before returning from the error condition.
Fixes: f517ba4924ad ("ASoC: cs35l41: Add support for hibernate memory retention mode")
Signed-off-by: Cristian Ciocaltea <[email protected]>
Acked-by: Charles Keepax <[email protected]>
Reviewed-by: Takashi Iwai <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions