diff options
| author | Christophe JAILLET <[email protected]> | 2025-07-05 07:57:38 +0000 |
|---|---|---|
| committer | Andi Shyti <[email protected]> | 2025-07-10 09:58:33 +0000 |
| commit | 60c016afccac7acb78a43b9c75480887ed3ce48e (patch) | |
| tree | 6e8fc5a009200d8cdb98405219ed3919b6e84ba7 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
| parent | i2c: omap: Handle omap_i2c_init() errors in omap_i2c_probe() (diff) | |
| download | kernel-60c016afccac7acb78a43b9c75480887ed3ce48e.tar.gz kernel-60c016afccac7acb78a43b9c75480887ed3ce48e.zip | |
i2c: omap: Fix an error handling path in omap_i2c_probe()
If an error occurs after pm_runtime_use_autosuspend(), a corresponding
pm_runtime_dont_use_autosuspend() should be called.
In case of error in pm_runtime_resume_and_get(), it is not the case because
the error handling path is wrongly ordered.
Fix it.
Fixes: 780f62974125 ("i2c: omap: fix reference leak when pm_runtime_get_sync fails")
Signed-off-by: Christophe JAILLET <[email protected]>
Cc: <[email protected]> # v5.13+
Signed-off-by: Andi Shyti <[email protected]>
Link: https://lore.kernel.org/r/af8a9b62996bebbaaa7c02986aa2a8325ef11596.1751701715.git.christophe.jaillet@wanadoo.fr
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions
