diff options
author | Guenter Roeck <linux@roeck-us.net> | 2022-07-12 15:17:05 -0700 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2022-07-21 13:48:16 +0200 |
commit | ab5f3404b7762b88403fbddbdda6b1b464bd6cbc (patch) | |
tree | 997422656d567376745469d84d00a3373e1fae8f /drivers/hid/wacom.h | |
parent | 12ffcd757860ed541f0dbb86bbd0ddac642e2e43 (diff) |
HID: nintendo: Add missing array termination
joycon_dpad_inputs_jc[] is unterminated. This may result in odd warnings
such as
input: input_set_capability: invalid code 3077588140 for type 1
or in kernel crashes in nintendo_hid_probe(). Terminate the array to fix
the problem.
Fixes: 2af16c1f846bd ("HID: nintendo: add nintendo switch controller driver")
Cc: Daniel J. Ogorchock <djogorchock@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/wacom.h')
0 files changed, 0 insertions, 0 deletions