+9
−9
Loading
stable inclusion from stable-v5.10.227 commit 20557232c91adf2fd10b6abfc148ce9218af73e0 category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/IAYRCN CVE: CVE-2024-49955 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=20557232c91adf2fd10b6abfc148ce9218af73e0 -------------------------------- [ Upstream commit 86309cbed26139e1caae7629dcca1027d9a28e75 ] Move the conditional locking from __battery_hook_unregister() into battery_hook_unregister() and rename the low-level function to simplify the locking during battery hook removal. Reviewed-by:Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Reviewed-by:
Pali Rohár <pali@kernel.org> Signed-off-by:
Armin Wolf <W_Armin@gmx.de> Link: https://patch.msgid.link/20241001212835.341788-2-W_Armin@gmx.de Signed-off-by:
Rafael J. Wysocki <rafael.j.wysocki@intel.com> Stable-dep-of: 76959aff14a0 ("ACPI: battery: Fix possible crash when unregistering a battery hook") Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
liwei <liwei728@huawei.com>