]> git.baikalelectronics.ru Git - 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)
committerWill Deacon <will@kernel.org>
Fri, 12 Mar 2021 11:30:31 +0000 (11:30 +0000)
commit155a0f3f7a66d4e727e6f36877b43b6772cbd115
tree165a408b03b5f51cb35195f96b382cfc96bc1e93
parent95ac637b03aa4744c0ac0920b5424d8fc3377fcf
perf/arm_dmc620_pmu: Fix error return code in dmc620_pmu_device_probe()

Fix to return negative error code -ENOMEM from the error handling
case instead of 0, as done elsewhere in this function.

Fixes: 37569378fa1e ("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>
drivers/perf/arm_dmc620_pmu.c