From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EDBDDEB64DD for ; Sun, 16 Jul 2023 20:05:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231248AbjGPUFi (ORCPT ); Sun, 16 Jul 2023 16:05:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231246AbjGPUFh (ORCPT ); Sun, 16 Jul 2023 16:05:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB2C8FD for ; Sun, 16 Jul 2023 13:05:36 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8865060DD4 for ; Sun, 16 Jul 2023 20:05:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9C6A1C433C8; Sun, 16 Jul 2023 20:05:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1689537936; bh=xg7FdGgVeH2L7lcNu9O/62PQ5D/txcCZrPj4g/Koj18=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=buGrC0QUSDkR1GzkoGTRSp9Yo/L84Qvp+EG0OSXgwJwFOKaoATWuVW9QW6z2HM6IX aOy5YrjqmH3F/E2eLr+MuGX53y4Phky9C/oYY7TDeCyYEm95ACGveHE0hYU2McJdAj hBLUw7SIc1FD+NkLBAsgQM4uE7P8oAqmZQ0TDs2E= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Geert Uytterhoeven , Geert Uytterhoeven , Javier Martinez Canillas , Dmitry Torokhov , Sasha Levin Subject: [PATCH 6.4 244/800] Input: tests - fix input_test_match_device_id test Date: Sun, 16 Jul 2023 21:41:37 +0200 Message-ID: <20230716194954.769029259@linuxfoundation.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230716194949.099592437@linuxfoundation.org> References: <20230716194949.099592437@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Dmitry Torokhov [ 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 Tested-by: Geert Uytterhoeven Reviewed-by: Javier Martinez Canillas Link: https://lore.kernel.org/r/ZFLI7T2qZTGJ1UUK@google.com Signed-off-by: Dmitry Torokhov Signed-off-by: Sasha Levin --- drivers/input/tests/input_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2