Searched hist:"3 d8e00909df96c2d3eace3996748be9c0a437e5a" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/acpi/ |
H A D | scan.c | diff 3d8e00909df96c2d3eace3996748be9c0a437e5a Tue Jan 14 02:46:35 CST 2014 Zhang Rui <rui.zhang@intel.com> ACPI: fix create_modalias() return value handling
Currently, create_modalias() handles the output truncated case in an improper way (return -EINVAL). Plus, acpi_device_uevent() and acpi_device_modalias_show() do improper check for the create_modalias() return value as well.
This patch fixes create_modalias() to return -EINVAL if there is an output error, return -ENOMEM if the output is truncated, and also fixes both acpi_device_uevent() and acpi_device_modalias_show() to do proper return value check.
Signed-off-by: Zhang Rui <rui.zhang@intel.com> Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
|