summaryrefslogtreecommitdiff
path: root/scripts/objdiff
diff options
context:
space:
mode:
authorGuangshuo Li <lgs201920130244@gmail.com>2026-07-05 11:31:07 +0800
committerMiquel Raynal <miquel.raynal@bootlin.com>2026-07-17 17:49:13 +0200
commitdf6f582df3377af316a60ca8ee0d590b2d03924d (patch)
tree3a7065913b3cc06cda4bb3331eefc32eb167f37c /scripts/objdiff
parentd276783e490d73536135f90f96c5875f263481ab (diff)
downloadlinux-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/objdiff')
0 files changed, 0 insertions, 0 deletions