summaryrefslogtreecommitdiff
path: root/firmware/bnx2
diff options
context:
space:
mode:
authorZhang Rui <rui.zhang@intel.com>2014-01-14 12:46:35 +0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-01-17 02:06:42 +0400
commit3d8e00909df96c2d3eace3996748be9c0a437e5a (patch)
tree97baef1d748eb49d303772026143d10b56652bdf /firmware/bnx2
parent7e22e91102c6b9df7c4ae2168910e19d2bb14cd6 (diff)
downloadlinux-3d8e00909df96c2d3eace3996748be9c0a437e5a.tar.xz
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 'firmware/bnx2')
0 files changed, 0 insertions, 0 deletions