diff options
| author | Guangshuo Li <lgs201920130244@gmail.com> | 2026-07-05 11:31:07 +0800 |
|---|---|---|
| committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2026-07-17 17:49:13 +0200 |
| commit | df6f582df3377af316a60ca8ee0d590b2d03924d (patch) | |
| tree | 3a7065913b3cc06cda4bb3331eefc32eb167f37c /scripts/stackusage | |
| parent | d276783e490d73536135f90f96c5875f263481ab (diff) | |
| download | linux-df6f582df3377af316a60ca8ee0d590b2d03924d.tar.gz linux-df6f582df3377af316a60ca8ee0d590b2d03924d.zip | |
mtd: intel-dg: Fix runtime PM error path in probe
intel_dg_mtd_probe() allocates region names before enabling runtime PM
and before calling pm_runtime_resume_and_get().
If kasprintf() fails while building a region name, the error path jumps
to err, which calls pm_runtime_put(). At that point there has not been a
successful pm_runtime_resume_and_get() call to balance, so the runtime PM
usage count can underflow.
Jump to err_norpm from the kasprintf() failure path, as the runtime PM
reference has not been acquired yet.
Fixes: 779c59274d03 ("mtd: intel-dg: Fix accessing regions before setting nregions")
Signed-off-by: Guangshuo Li <lgs201920130244@gmail.com>
Reviewed-by: Raag Jadav <raag.jadav@intel.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions
