]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
HID: prodikeys: Check presence of pm->input_ep82
authorGünther Noack <gnoack@google.com>
Fri, 9 Jan 2026 10:58:08 +0000 (11:58 +0100)
committerJiri Kosina <jkosina@suse.com>
Sat, 10 Jan 2026 09:28:36 +0000 (10:28 +0100)
commitcee8337e1bad168136aecfe6416ecd7d3aa7529a
tree40e742dbc95b517dd683ee29bf50f3eb3c51a249
parent17abd396548035fbd6179ee1a431bd75d49676a7
HID: prodikeys: Check presence of pm->input_ep82

Fake USB devices can send their own report descriptors for which the
input_mapping() hook does not get called.  In this case, pm->input_ep82 stays
NULL, which leads to a crash later.

This does not happen with the real device, but can be provoked by imposing as
one.

Cc: stable@vger.kernel.org
Signed-off-by: Günther Noack <gnoack@google.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-prodikeys.c