]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
perf/arm_dmc620_pmu: Fix error return code in dmc620_pmu_device_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Fri, 12 Mar 2021 08:04:21 +0000 (08:04 +0000)
committerSeth Forshee <seth.forshee@canonical.com>
Wed, 17 Mar 2021 18:49:00 +0000 (13:49 -0500)
commit24337ae6ea5f6589cfb4e99212282d27ac49c5e2
tree1b343421c7b0a766282e3020e6e6014e4bf58fa4
parentd54c77de5f1e2a9c832872eca280d153dab282db
perf/arm_dmc620_pmu: Fix error return code in dmc620_pmu_device_probe()

BugLink: https://bugs.launchpad.net/bugs/1919492
[ 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>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/perf/arm_dmc620_pmu.c