summaryrefslogtreecommitdiff
path: root/drivers/clk/mvebu/dove-divider.h
diff options
context:
space:
mode:
authorNikita Kiryushin <kiryushin@ancud.ru>2023-11-09 16:49:25 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-01-26 01:37:40 +0300
commitc4e1a0ef0b4782854c9b77a333ca912b392bed2f (patch)
tree07c7f884430d3a9496d9d381c67504b51e054dc6 /drivers/clk/mvebu/dove-divider.h
parent11ac297aba78e7f29c8344c4e0b02620bc23c446 (diff)
downloadlinux-c4e1a0ef0b4782854c9b77a333ca912b392bed2f.tar.xz
ACPI: video: check for error while searching for backlight device parent
[ Upstream commit ccd45faf4973746c4f30ea41eec864e5cf191099 ] If acpi_get_parent() called in acpi_video_dev_register_backlight() fails, for example, because acpi_ut_acquire_mutex() fails inside acpi_get_parent), this can lead to incorrect (uninitialized) acpi_parent handle being passed to acpi_get_pci_dev() for detecting the parent pci device. Check acpi_get_parent() result and set parent device only in case of success. Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: 9661e92c10a9 ("acpi: tie ACPI backlight devices to PCI devices if possible") Signed-off-by: Nikita Kiryushin <kiryushin@ancud.ru> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/clk/mvebu/dove-divider.h')
0 files changed, 0 insertions, 0 deletions