Messages in this thread | | | Date | Wed, 15 Jan 2014 17:02:45 +0200 | From | Mika Westerberg <> | Subject | Re: [PATCH 1/4] ACPI: fix create_modalias() return value handling |
| |
On Tue, Jan 14, 2014 at 04:46:35PM +0800, Zhang Rui wrote: > 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>
| |