summaryrefslogtreecommitdiff
path: root/scripts/basic/split-include.c
diff options
context:
space:
mode:
authorJiale Yao <yaojiale02@163.com>2026-10-17 14:43:13 +0800
committerWei Liu <wei.liu@kernel.org>2026-10-21 00:04:22 -0700
commitdd57772e36f72f8d9a53d7fa4d90c974d8ebbcff (patch)
treea2a0919fec8b724f8e40e4fa83028dbb33793b99 /scripts/basic/split-include.c
parent6eb81a2a06e73490cfba9b1a89b73bff44e0399b (diff)
downloadlinux-dd57772e36f72f8d9a53d7fa4d90c974d8ebbcff.tar.gz
linux-dd57772e36f72f8d9a53d7fa4d90c974d8ebbcff.zip
Drivers: hv: vmbus: Check ACPI companion before use
Platform drivers can be forced to bind to devices outside their match tables through driver_override. vmbus_acpi_add() assumes that every bound device has an ACPI companion and dereferences it without checking. Return -ENODEV when the companion is absent to avoid a NULL pointer dereference. Signed-off-by: Jiale Yao <yaojiale02@163.com> Fixes: 9c8434238041 ("Drivers: hv: vmbus: Convert acpi_device to more generic platform_device") Reviewed-by: Naman Jain <namjain@linux.microsoft.com> Signed-off-by: Wei Liu <wei.liu@kernel.org>
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions