summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2024-12-09 23:05:19 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-02-17 10:04:55 +0100
commit0a30353beca2693d30bde477024d755ffecea514 (patch)
treee1af3e40fa512b4ac01d1974f10f71aa4742939b /include
parentc578aedea2a1c505cb5038ac60b2fc1db7af3cc4 (diff)
downloadlinux-0a30353beca2693d30bde477024d755ffecea514.tar.gz
linux-0a30353beca2693d30bde477024d755ffecea514.tar.bz2
linux-0a30353beca2693d30bde477024d755ffecea514.zip
platform/x86: int3472: Check for adev == NULL
[ Upstream commit cd2fd6eab480dfc247b737cf7a3d6b009c4d0f1c ] Not all devices have an ACPI companion fwnode, so adev might be NULL. This can e.g. (theoretically) happen when a user manually binds one of the int3472 drivers to another i2c/platform device through sysfs. Add a check for adev not being set and return -ENODEV in that case to avoid a possible NULL pointer deref in skl_int3472_get_acpi_buffer(). Signed-off-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20241209220522.25288-1-hdegoede@redhat.com Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions