]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: property: Fix type detection of unified integer reading functions
authorStefan Binding <sbinding@opensource.cirrus.com>
Fri, 12 Aug 2022 13:06:45 +0000 (14:06 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 25 Aug 2022 11:28:44 +0000 (13:28 +0200)
commit3713cbd4e5edf2135e421b969d99e081b9f9b392
tree3dbd1a8339f6c5ce74968fa0252739e1242cfc95
parentacaa855d21c1fc8e8a1fab873003c0736c2d01f6
ACPI: property: Fix type detection of unified integer reading functions

The current code expects the type of the value to be an integer type,
instead the value passed to the macro is a pointer.
Ensure the size comparison uses the correct pointer type to choose the
max value, instead of using the integer type.

Fixes: c37d4a509f82 ("ACPI: property: Unify integer value reading functions")
Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com>
Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Tested-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Tested-by: John Garry <john.garry@huawei.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/property.c