diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2023-05-05 11:16:29 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2023-05-05 11:18:43 -0700 |
commit | c73b4db076faf827d0656665ef5e97b76926b60f (patch) | |
tree | 55a32035c41c3397c432c99efa1ac04596893718 /drivers/input | |
parent | 3516fa162a01f6611c3c129ce9529bdc720d36b7 (diff) | |
download | linux-c73b4db076faf827d0656665ef5e97b76926b60f.tar.gz linux-c73b4db076faf827d0656665ef5e97b76926b60f.tar.bz2 linux-c73b4db076faf827d0656665ef5e97b76926b60f.zip |
Input: tests - fix input_test_match_device_id test
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@linux-m68k.org>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://lore.kernel.org/r/ZFLI7T2qZTGJ1UUK@google.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/tests/input_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/tests/input_test.c b/drivers/input/tests/input_test.c index 8b8ac3412a70..0540225f0288 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 |