Skip to content

platform/x86: Check ACPI_COMPANION() or ACPI_HANDLE() against NULL

Rafael J. Wysocki linux-acpi lkml platform-driver-x86 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/25 patches 5 repliesIn review
  2. v2 posting 1/216 patches 1 replySuperseded
  3. v11 patch 5 repliesSuperseded

Patches in v2 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5platform/x86: adv_swbutton: Check ACPI_HANDLE() against NULLdrivers/platform/x86/adv_swbutton.c+5 -10 replies
2/5platform/x86: hp_accel: Check ACPI_COMPANION() against NULLdrivers/platform/x86/hp/hp_accel.c+3 -00 replies
3/5platform/x86: intel-hid: Check ACPI_HANDLE() against NULLdrivers/platform/x86/intel/hid.c+5 -10 replies
4/5platform/x86: intel_sar: Check ACPI_HANDLE() against NULLdrivers/platform/x86/intel/int1092/intel_sar.c+6 -10 replies
5/5platform/x86: intel-vbtn: Check ACPI_HANDLE() against NULLdrivers/platform/x86/intel/vbtn.c+5 -10 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAndy Shevchenko
SeriesR-b
1/5
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/5] platform/x86: Check ACPI_COMPANION() or ACPI_HANDLE() against NULL

Hi All,

This series replaces

https://lore.kernel.org/linux-acpi/[email protected]/

and as a whole it makes exactly the same code changes.

Every platform driver can be forced to match a device that doesn't match its list of device IDs because of device_match_driver_override(), so platform drivers that rely on the existence of a device's ACPI companion object need to verify its presence.

Accordingly, add requisite ACPI_COMPANION() or ACPI_HANDLE() checks against NULL to 5 platform/x86 drivers where they are missing.

Thanks!