summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/processor_thermal.c
diff options
context:
space:
mode:
authorZhang Rui <rui.zhang@intel.com>2014-01-14 16:46:35 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-01-16 23:06:42 +0100
commit3d8e00909df96c2d3eace3996748be9c0a437e5a (patch)
tree97baef1d748eb49d303772026143d10b56652bdf /drivers/acpi/processor_thermal.c
parent7e22e91102c6b9df7c4ae2168910e19d2bb14cd6 (diff)
downloadop-kernel-dev-3d8e00909df96c2d3eace3996748be9c0a437e5a.zip
op-kernel-dev-3d8e00909df96c2d3eace3996748be9c0a437e5a.tar.gz
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>
Diffstat (limited to 'drivers/acpi/processor_thermal.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud