Darren Hart
cb2bf25145
platform/x86: thinkpad_acpi: Initialize local in_tablet_mode and type
...
linux-next reported in_tablet_mode and type may be used uninitialized
after:
b318002838 ("platform/x86: thinkpad_acpi: Move tablet detection into separate function")
This turns out to be a false positive as the pr_info call cannot be
reached if tp_features.hotkey_tablet (global scope) is 0, and
in_tablet_mode and type are assigned in both places
tp_features.hotkey_tablet is assigned.
Regardless, to make it explicit and avoid further reports, initialize
in_tablet_mode to 0 and type to NULL.
Signed-off-by: Darren Hart <dvhart@linux.intel.com >
Acked-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br >
Cc: Lyude <lyude@redhat.com >
2016-12-15 12:31:48 -08:00
..
2016-10-14 12:50:05 -07:00
2016-09-30 10:28:51 +02:00
2016-10-06 17:03:41 +02:00
2016-10-07 18:46:28 -07:00
2016-10-11 15:06:33 -07:00
2016-10-07 09:46:56 +02:00
2016-10-07 21:23:40 -07:00
2016-10-15 10:03:15 -07:00
2016-10-07 21:34:49 -07:00
2016-10-07 21:23:40 -07:00
2016-10-14 12:46:13 -07:00
2016-10-15 09:26:12 -07:00
2016-10-10 14:04:16 -07:00
2016-10-07 16:46:30 -07:00
2016-10-11 00:01:20 +02:00
2016-10-06 17:13:54 -07:00
2016-10-11 18:12:22 -07:00
2016-10-04 12:06:26 -07:00
2016-10-09 11:38:11 +02:00
2016-10-07 21:23:40 -07:00
2016-10-11 23:17:08 +02:00
2016-10-19 08:39:47 -07:00
2016-10-10 10:58:22 +02:00
2016-09-27 12:35:49 +02:00
2016-10-04 10:56:14 -07:00
2016-10-11 23:37:26 +02:00
2016-10-07 18:46:30 -07:00
2016-10-05 14:50:51 -07:00
2016-10-19 08:39:47 -07:00
2016-10-14 13:19:30 -07:00
2016-10-11 12:52:41 -07:00
2016-10-18 09:01:22 -07:00
2016-10-07 14:42:05 -07:00
2016-10-06 17:36:53 -07:00
2016-09-27 12:33:47 +02:00
2016-10-11 15:06:33 -07:00
2016-10-19 08:39:47 -07:00
2016-10-07 21:23:40 -07:00
2016-10-07 08:35:35 -07:00
2016-10-19 08:11:43 -07:00
2016-10-03 20:17:35 -07:00
2016-10-11 17:34:10 -07:00
2016-10-14 13:43:08 -07:00
2016-10-07 16:46:30 -07:00
2016-10-11 15:06:32 -07:00
2016-10-07 21:23:40 -07:00
2016-10-15 09:26:12 -07:00
2016-10-10 20:16:43 -07:00
2016-10-13 17:08:58 -07:00
2016-10-07 21:23:40 -07:00
2016-10-18 14:38:16 +02:00
2016-12-15 12:31:48 -08:00
2016-10-06 18:21:15 -07:00
2016-10-11 15:06:32 -07:00
2016-10-13 10:20:06 -04:00
2016-10-19 08:11:43 -07:00
2016-10-12 11:05:23 -07:00
2016-10-06 17:03:49 -07:00
2016-10-14 13:13:44 -07:00
2016-10-07 09:28:53 -07:00
2016-10-19 08:39:47 -07:00
2016-10-14 11:07:42 -07:00
2016-10-11 15:06:33 -07:00
2016-09-27 12:43:34 +02:00
2016-10-19 08:11:43 -07:00
2016-10-12 11:05:23 -07:00
2016-10-11 15:06:33 -07:00
2016-10-15 09:26:12 -07:00
2016-09-29 13:36:38 -06:00
2016-10-19 08:39:47 -07:00
2016-10-19 08:11:43 -07:00
2016-09-27 12:43:35 +02:00
2016-10-13 16:44:20 -07:00
2016-10-06 11:19:10 -07:00
2016-09-23 13:00:04 +02:00