]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: processor: Check for null return of devm_kzalloc() in fch_misc_setup()
authorKang Chen <void0red@gmail.com>
Sun, 26 Feb 2023 05:54:27 +0000 (13:54 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 May 2023 16:32:35 +0000 (17:32 +0100)
commita7f93eb234014cf3ea05ad713eb3c8d141ed129b
treecad891aa80475ac68e0cdf6b3378b7bdfd0252eb
parent8ce2fa5cbcef1601f4244c159ea5195319879bb9
ACPI: processor: Check for null return of devm_kzalloc() in fch_misc_setup()

[ Upstream commit 4dea41775d951ff1f7b472a346a8ca3ae7e74455 ]

devm_kzalloc() may fail, clk_data->name might be NULL and will
cause a NULL pointer dereference later.

Signed-off-by: Kang Chen <void0red@gmail.com>
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/acpi/acpi_apd.c