Dan Carpenter
f18ebc211e
ACPI / sysfs: fix error code in get_status()
...
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>
2016-05-05 15:28:58 +02:00
..
2016-03-14 14:19:52 +01:00
2016-03-16 14:10:53 -07:00
2016-03-09 23:46:07 +01:00
2015-07-08 02:27:32 +02:00
2016-02-16 19:58:25 +01:00
2016-03-17 02:54:39 +01:00
2015-12-28 01:29:41 +01:00
2015-07-08 02:27:32 +02:00
2016-02-03 01:08:22 +01:00
2015-07-08 02:27:32 +02:00
2015-10-26 04:42:54 +01:00
2016-03-16 14:10:53 -07:00
2016-01-04 22:10:30 +01:00
2016-03-26 02:00:38 +01:00
2016-03-09 23:29:07 +01:00
2015-07-08 02:27:32 +02:00
2016-03-09 23:46:07 +01:00
2015-07-08 02:27:32 +02:00
2016-04-02 01:17:36 +02:00
2015-07-08 02:27:32 +02:00
2015-07-08 02:27:32 +02:00
2015-07-08 02:27:32 +02:00
2016-03-09 23:35:29 +01:00
2015-08-07 02:55:18 +02:00
2016-01-08 01:12:06 +01:00
2016-05-04 23:47:32 +02:00
2015-07-08 02:27:32 +02:00
2016-03-09 23:26:15 +01:00
2015-11-16 23:29:44 +01:00
2016-03-09 23:23:21 +01:00
2015-11-07 01:30:10 +01:00
2016-01-01 03:20:25 +01:00
2015-07-08 02:27:32 +02:00
2015-09-15 03:05:45 +02:00
2016-04-02 01:17:36 +02:00
2016-04-26 22:41:16 +02:00
2016-02-16 19:58:25 +01:00
2016-03-09 17:15:43 -08:00
2016-03-05 12:24:06 -08:00
2015-07-08 02:27:32 +02:00
2016-03-09 23:55:02 +01:00
2016-03-09 01:23:35 +01:00
2016-02-24 13:55:38 +01:00
2015-12-02 02:30:15 +01:00
2015-07-08 02:27:32 +02:00
2015-09-01 03:38:43 +02:00
2015-09-15 03:03:15 +02:00
2015-05-13 23:28:16 +02:00
2016-02-22 00:53:56 +01:00
2016-03-16 14:10:53 -07:00
2015-05-13 23:28:14 +02:00
2015-09-01 15:52:35 +02:00
2015-07-08 02:27:32 +02:00
2015-07-08 02:27:32 +02:00
2016-03-17 03:06:38 +01:00
2016-03-22 23:07:49 +01:00
2016-01-04 22:14:27 +01:00
2015-11-16 23:26:45 +01:00
2016-02-16 19:58:25 +01:00
2016-03-25 00:58:18 +01:00
2016-01-04 22:05:20 +01:00
2016-05-05 15:28:58 +02:00
2016-03-14 14:21:23 +01:00
2015-10-10 11:32:30 +08:00
2016-04-09 03:12:58 +02:00
2016-01-23 03:04:59 +01:00