From: Zhang Rui Date: Tue, 14 Jan 2014 08:46:35 +0000 (+0800) Subject: ACPI: fix create_modalias() return value handling X-Git-Tag: v3.14-rc1~107^2~2^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d8e00909df96c2d3eace3996748be9c0a437e5a;p=pandora-kernel.git 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 Reviewed-by: Mika Westerberg Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed