diff options
| author | 2026-10-17 14:43:13 +0800 | |
|---|---|---|
| committer | 2026-10-21 00:04:22 -0700 | |
| commit | dd57772e36f72f8d9a53d7fa4d90c974d8ebbcff (patch) | |
| tree | a2a0919fec8b724f8e40e4fa83028dbb33793b99 /scripts/Makefile.thinlto | |
| parent | Documentation: hyperv: Describe validation of the ring buffer indices (diff) | |
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/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
