Patch "Input: iqs7222 - avoid sending empty SYN_REPORT events" has been added to the 6.0-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    Input: iqs7222 - avoid sending empty SYN_REPORT events

to the 6.0-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     input-iqs7222-avoid-sending-empty-syn_report-events.patch
and it can be found in the queue-6.0 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 16a321dfb35e4d18a638777ebdfbd45ee43c2eae
Author: Jeff LaBundy <jeff@xxxxxxxxxxx>
Date:   Thu Sep 8 14:24:24 2022 -0700

    Input: iqs7222 - avoid sending empty SYN_REPORT events
    
    [ Upstream commit 514c13b1faed74e9bc19061b6d7c78d53a3402ba ]
    
    Add a check to prevent sending undefined events, which ultimately
    map to SYN_REPORT.
    
    Fixes: e505edaedcb9 ("Input: add support for Azoteq IQS7222A/B/C")
    Signed-off-by: Jeff LaBundy <jeff@xxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20220908131548.48120-7-jeff@xxxxxxxxxxx
    Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/input/misc/iqs7222.c b/drivers/input/misc/iqs7222.c
index 8fd665874a24..0b2bf471b3a0 100644
--- a/drivers/input/misc/iqs7222.c
+++ b/drivers/input/misc/iqs7222.c
@@ -2314,6 +2314,9 @@ static int iqs7222_report(struct iqs7222_private *iqs7222)
 			int k = 2 + j * (num_chan > 16 ? 2 : 1);
 			u16 state = le16_to_cpu(status[k + i / 16]);
 
+			if (!iqs7222->kp_type[i][j])
+				continue;
+
 			input_event(iqs7222->keypad,
 				    iqs7222->kp_type[i][j],
 				    iqs7222->kp_code[i][j],



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux