summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2016-05-05 16:23:04 +0300
committerBen Hutchings <ben@decadent.org.uk>2016-08-22 22:37:09 +0100
commitae9dc44c3756db582c72e638c872391944b58968 (patch)
treead87b8c8af21512dae982319bb5f25db8669d053 /Makefile
parentbdcc4ee48674325c8fe68939b8b2f2771ca6d519 (diff)
downloadlwn-ae9dc44c3756db582c72e638c872391944b58968.tar.gz
lwn-ae9dc44c3756db582c72e638c872391944b58968.zip
ACPI / sysfs: fix error code in get_status()
commit f18ebc211e259d4f591e39e74b2aa2de226c9a1d upstream. The problem with ornamental, do-nothing gotos is that they lead to "forgot to set the error code" bugs. We should be returning -EINVAL here but we don't. It leads to an uninitalized variable in counter_show(): drivers/acpi/sysfs.c:603 counter_show() error: uninitialized symbol 'status'. Fixes: 1c8fce27e275 (ACPI: introduce drivers/acpi/sysfs.c) Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions