Patch "Input: tests - fix input_test_match_device_id test" has been added to the 6.4-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: tests - fix input_test_match_device_id test

to the 6.4-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-tests-fix-input_test_match_device_id-test.patch
and it can be found in the queue-6.4 subdirectory.

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



commit 5a548b9613cdbd5530530d4249671a4aac216bde
Author: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
Date:   Fri May 5 11:16:29 2023 -0700

    Input: tests - fix input_test_match_device_id test
    
    [ Upstream commit c73b4db076faf827d0656665ef5e97b76926b60f ]
    
    Properly initialize input_device_id structure in
    input_test_match_device_id test to make sure it contains no garbage
    causing the test to randomly fail.
    
    Fixes: fdefcbdd6f36 ("Input: Add KUnit tests for some of the input core helper functions")
    Reported-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
    Tested-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
    Reviewed-by: Javier Martinez Canillas <javierm@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/ZFLI7T2qZTGJ1UUK@xxxxxxxxxx
    Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/input/tests/input_test.c b/drivers/input/tests/input_test.c
index 8b8ac3412a70d..0540225f02886 100644
--- a/drivers/input/tests/input_test.c
+++ b/drivers/input/tests/input_test.c
@@ -87,7 +87,7 @@ static void input_test_timestamp(struct kunit *test)
 static void input_test_match_device_id(struct kunit *test)
 {
 	struct input_dev *input_dev = test->priv;
-	struct input_device_id id;
+	struct input_device_id id = { 0 };
 
 	/*
 	 * Must match when the input device bus, vendor, product, version



[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