diff options
author | Mark Rutland <mark.rutland@arm.com> | 2022-11-08 09:37:25 +0000 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2022-11-08 12:42:46 +0000 |
commit | a8731264e5ce083eb761e5a6a8273db536743e9e (patch) | |
tree | a83dc14a13eb941769f057aad54c973ca60d29fa /drivers/acpi/Kconfig | |
parent | fe40ffdb7656d1f9c42dd402740765ff8b418b17 (diff) | |
download | linux-stable-a8731264e5ce083eb761e5a6a8273db536743e9e.tar.gz linux-stable-a8731264e5ce083eb761e5a6a8273db536743e9e.tar.bz2 linux-stable-a8731264e5ce083eb761e5a6a8273db536743e9e.zip |
arm_pmu: acpi: handle allocation failure
One of the failure paths in the arm_pmu ACPI code is missing an early
return, permitting a NULL pointer dereference upon a memory allocation
failure.
Add the missing return.
Fixes: fe40ffdb7656 ("arm_pmu: rework ACPI probing")
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Reported-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20221108093725.1239563-1-mark.rutland@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'drivers/acpi/Kconfig')
0 files changed, 0 insertions, 0 deletions