From 2fc6c618b3d9bb238529dba08e916444107f6574 Mon Sep 17 00:00:00 2001 From: Ondrej Jirman Date: Fri, 11 Mar 2022 22:01:10 +0100 Subject: [PATCH 085/389] input: cyttsp4: Fix probe oops __set_bit is called with bit offset -1 which causes oops. Signed-off-by: Ondrej Jirman --- drivers/input/touchscreen/cyttsp4_core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/input/touchscreen/cyttsp4_core.c b/drivers/input/touchscreen/cyttsp4_core.c index f3751b3b64a0..76c2f5d27c17 100644 --- a/drivers/input/touchscreen/cyttsp4_core.c +++ b/drivers/input/touchscreen/cyttsp4_core.c @@ -1907,6 +1907,9 @@ static int cyttsp4_setup_input_device(struct cyttsp4 *cd) for (i = 0; i < cd->n_signals; i++) { signal = &cd->signals[i]; + if (signal->signal < 0) + continue; + __set_bit(signal->signal, cd->input->absbit); max = signal->max; -- 2.35.3