Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PM / devfreq: exynos-ppmu: fix error path in exynos_ppmu_probe()

iounmap() needs to be called in case of memory allocation
(for devfreq-event devices) failure. Fix it.

Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>

authored by

Bartlomiej Zolnierkiewicz and committed by
MyungJoo Ham
99e65ae0 c07e074b

+2 -1
+2 -1
drivers/devfreq/event/exynos-ppmu.c
··· 482 482 if (!info->edev) { 483 483 dev_err(&pdev->dev, 484 484 "failed to allocate memory devfreq-event devices\n"); 485 - return -ENOMEM; 485 + ret = -ENOMEM; 486 + goto err; 486 487 } 487 488 edev = info->edev; 488 489 platform_set_drvdata(pdev, info);