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: 92304413 ("ACPI: property: Unify integer value reading functions") Signed-off-by: NStefan Binding <sbinding@opensource.cirrus.com> Reviewed-by: NSakari Ailus <sakari.ailus@linux.intel.com> Tested-by: NSakari Ailus <sakari.ailus@linux.intel.com> Tested-by: NJohn Garry <john.garry@huawei.com> Acked-by: NArd Biesheuvel <ardb@kernel.org> Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
Showing
想要评论请 注册 或 登录