projects
/
wrapfs-5.3.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aba4bdd
)
perf/arm_dmc620_pmu: Fix error return code in dmc620_pmu_device_probe()
author
Wei Yongjun
<weiyongjun1@huawei.com>
Fri, 12 Mar 2021 08:04:21 +0000
(08:04 +0000)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 17 Mar 2021 16:11:42 +0000
(17:11 +0100)
[ Upstream commit
c8e3866836528a4ba3b0535834f03768d74f7d8e
]
Fix to return negative error code -ENOMEM from the error handling
case instead of 0, as done elsewhere in this function.
Fixes: 53c218da220c ("driver/perf: Add PMU driver for the ARM DMC-620 memory controller")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Link:
https://lore.kernel.org/r/20210312080421.277562-1-weiyongjun1@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/perf/arm_dmc620_pmu.c
patch
|
blob
|
history
diff --git
a/drivers/perf/arm_dmc620_pmu.c
b/drivers/perf/arm_dmc620_pmu.c
index 004930eb4bbb6d01abe367e10969b4d0da565d48..b50b47f1a0d92b48bc788a1214c436044500f0f9 100644
(file)
--- a/
drivers/perf/arm_dmc620_pmu.c
+++ b/
drivers/perf/arm_dmc620_pmu.c
@@
-681,6
+681,7
@@
static int dmc620_pmu_device_probe(struct platform_device *pdev)
if (!name) {
dev_err(&pdev->dev,
"Create name failed, PMU @%pa\n", &res->start);
+ ret = -ENOMEM;
goto out_teardown_dev;
}