Received: by 2002:a05:7412:a9a8:b0:f9:92ae:e617 with SMTP id o40csp104076rdh; Wed, 20 Dec 2023 17:55:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IGgPkv6c+jybDntVuwh3/aZoIPBWji2fgEUJiMyiNPsBeYkc+3e+B8CN7KupKC8FEJs7Hnv X-Received: by 2002:a05:620a:1d94:b0:77f:9540:56ab with SMTP id pj20-20020a05620a1d9400b0077f954056abmr13809603qkn.123.1703123758726; Wed, 20 Dec 2023 17:55:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1703123758; cv=pass; d=google.com; s=arc-20160816; b=pJ+Ssybpx04zXwAjUw9g/XGdJbaz7LBGws9f/QxU0s1in/YA9s4ZxrdhQH9GlfklfL xIJ8onvyBKEy4NjHeakBoGPgj0yndJQlml0BlXkIlxmSSvDOleFb7jpEw5u8n/N9cSJ1 L3HTQF6HSa369gUMJ6VjK9j7GmCMtCKC11ifs98FMFszAvoxmF/QXlUCHzPtxNPGWEdL IeXAX1HhDo+dBjT3W7Vw66PZRVbzM2EUlfRfVt1/XVqCYU4N5b8C6xLj36Jagrotx/eB BbWGR3orDgV+Lvx477FhzGAMFyoTaSkBkFeiX+JfsY64IgBFXPUTETT4ZqsOniqXvmvA fK+Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:message-id:date:subject:cc:to:from :dkim-signature; bh=uKudgzDyEN0SHJhiq9UuhDS3i4B7jAKsqGj7ubi5gdw=; fh=gjhlXScL6mFEo0nXCrMdijVSlWbDxut5YVMCLaaHqt4=; b=Np8cIgEQjntSHxsRmUQtCjKiuAHGmHcNH2sYj6NUmZR/z4gq0kzbdzXu358wtlwsEq vIyA6icZ4DGPaI4eVJT5FFhK/snffrYHEpKumNwK+cwOETEHN6ZlWD4ZYbtxFPExWOsU JQtzr/kfqNUmHhgbFxcPV0ckgAHI7K/n3/yE57mifB/oprEwaas5a8NHL5vKLiLVpJMb 1cvO07+Y/aOnZmCdFyLQ8PUL2j/IhK6kgtytdzVHYmkeqdidwgbFaVR5AhnALkq4FAwN jQ/o62VE/RZHRr748p8jQxDhVUTKx95pxjNCFVnbRAkswXXEmLuNmPAsc3Z6YUTh3d+e 0wgg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=NEDEVnMZ; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-wireless+bounces-1127-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1127-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id w14-20020a05620a424e00b0078101b5cc99si1177731qko.708.2023.12.20.17.55.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 17:55:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1127-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=NEDEVnMZ; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-wireless+bounces-1127-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1127-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 6BD9D1C22639 for ; Thu, 21 Dec 2023 01:55:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A99BA15B7; Thu, 21 Dec 2023 01:55:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="NEDEVnMZ" X-Original-To: linux-wireless@vger.kernel.org Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2079.outbound.protection.outlook.com [40.107.8.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AF4C6184C; Thu, 21 Dec 2023 01:55:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f8FTGfVU/AjFoeNoWQ3flzLdlbAuIfxjpvtP6C3wE/W2LhPfd4j1uyA1Wn3UGLmFITlu4KX4ga44zwNNfgybU0z3n6o++h9ZU9xmxvmXpcacCrwhZPBbdQfggqfB/HnwVr0UvfWOzQwfDIV06HorIssMR+gjkcRaHJWP/E41IXInRYK0cACoGukaLiWVY+6BYYWec+zdol9TRmZunFpG/nTPT4snRhIiHzQ/YjNf6uQVL8wjkSByLeHLW5XBoRPpwsSRqlm+N7DY+DQx3vAS3x1vsVoGIDidzGqrkGF0oq6HvS8rfdXmhKMQo7GUJziRRTDOYuW1m74jwrWJPSAzRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=uKudgzDyEN0SHJhiq9UuhDS3i4B7jAKsqGj7ubi5gdw=; b=GQrSa05IlUDhRZ7VNCrHw9/+9gWwqdHdvoh3WxVszE04RWfMPTYbmJqLC+RElml0BN6+ogZJMNnTwrMKB13k2BQRUZkZWonrPjl8UxvSCVCdeaKJPwVF0z7BKUTXTQrYNgd69bqeYHwAedJDYE/NPpIUHaZQIGuXFlli8yN2HIsr7hp4svQbOJe6ZYd4kt7r77nIKB5y+PYhtqUCylUtpRAPtf6FooD2xOJkdEpjGlIsNHuBsFZ9mxTVyqS0ujre4PiyRZzO43xwdFFzIw5Wvaou0vsunhdzOmoG9odyDrqqVU88lM/r8xvfU8uT6CG9OhBoZ8n0cha1+DQFdc/IMQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uKudgzDyEN0SHJhiq9UuhDS3i4B7jAKsqGj7ubi5gdw=; b=NEDEVnMZhQ7fMKAntrH1W1xfJQEfdo6hRYpDvfNe1WrHA99sAuRZKSzefNdFAl1f1EmaqxAXGYcKVYfP1z09kvARVNxJciBFgW4mMTExdpmSKHL7lRQvs4G8ipBj1qtfrxHtgl8bm5EroGo1796lQVVJCSc5EB2NWbSuKNo7wvc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DU0PR04MB9636.eurprd04.prod.outlook.com (2603:10a6:10:320::21) by AS8PR04MB7943.eurprd04.prod.outlook.com (2603:10a6:20b:2a1::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7113.18; Thu, 21 Dec 2023 01:55:48 +0000 Received: from DU0PR04MB9636.eurprd04.prod.outlook.com ([fe80::1f29:340e:75ac:d14a]) by DU0PR04MB9636.eurprd04.prod.outlook.com ([fe80::1f29:340e:75ac:d14a%7]) with mapi id 15.20.7113.016; Thu, 21 Dec 2023 01:55:48 +0000 From: David Lin To: linux-wireless@vger.kernel.org Cc: linux-kernel@vger.kernel.org, briannorris@chromium.org, kvalo@kernel.org, francesco@dolcini.it, tsung-hsien.hsieh@nxp.com, David Lin , stable@vger.kernel.org, kernel test robot , Dan Carpenter Subject: [PATCH v2] wifi: mwifiex: fix uninitialized firmware_stat Date: Thu, 21 Dec 2023 09:55:11 +0800 Message-Id: <20231221015511.1032128-1-yu-hao.lin@nxp.com> X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR04CA0190.apcprd04.prod.outlook.com (2603:1096:4:14::28) To DU0PR04MB9636.eurprd04.prod.outlook.com (2603:10a6:10:320::21) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9636:EE_|AS8PR04MB7943:EE_ X-MS-Office365-Filtering-Correlation-Id: 01cb0b67-3520-44ea-cdad-08dc01c7f3c6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xZOMFbXDCZAKr5y8AkTSln/vpQpND1bT63YcY4n/lWjCd3FDxbQ4rcsj1kTYceHaeZLpqSPNfZ4NFduVhW3hI7M/DTzAjgu+MwTEVoTorg5mPFkg8NmvxOrUZAvJKnIKHJ6SKhPL4KH2DI0rU1cXqj4YzmRynrpcX/3KTrYbf1fmYk3rxev3i+3N2uzkJancQekrZfh2AOhB6iRoRVforHDW5+ZNQNHruMZ8tIoy92VnCv2XVkSKUWKwtZ6WLy9fwD6Ld+Fe15SxKsKtjab6NaFoCmYxZu4FgasruF9QzV+EYqdZtyHsusPAjyo30F2Xt9iZBiTTdwnpNuawKJZHpQTYZ1ZiofpII3d1/KhvuIyUHTZr5gL8olwJWJHCpq10Fg/zsVkBpaEWwOmD8DREnrDPjnFaNg/HT93dhpVUIzkvLmcajLIQfckFVD7SxjczIFNDwBrv7oYJobQFZKwOuu0AFnvzM5T1VvK06/WnOh3Vzn97GTsnLURl8/fHF293T0SvQV6O74AhPkxnE9Rhjl8BmbcORhUPcUvMtD31M+UhpW65ysfCu6w6Tn5Uhrzckk+QzwVNEr4Do7YrSMDxCeNZLGiM3D7GiunhOUigsuA= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9636.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376002)(366004)(346002)(396003)(136003)(39860400002)(230922051799003)(451199024)(186009)(1800799012)(64100799003)(41300700001)(6666004)(6506007)(86362001)(52116002)(26005)(1076003)(478600001)(2616005)(6512007)(8936002)(38350700005)(2906002)(36756003)(5660300002)(8676002)(4326008)(6486002)(966005)(83380400001)(6916009)(66946007)(316002)(66476007)(54906003)(66556008)(38100700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?q3lZfLtO6VoZg+olfaMLLJdkzd2yCcKplUeq8awdJJfLmNfTdUTsWHoLdowf?= =?us-ascii?Q?IvFZ//4JWyoAv3HqZ7o9u2LiPbTaF3jgVAjbl2URJdpnxDPJYz6ldem+6BXm?= =?us-ascii?Q?q9IgMAOxrzIyHRJHW9dQP2XV+VD1GJrurH6y06a30+GXq3ylqaM6i1WscB4Z?= =?us-ascii?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jNOt91Ypjfit6xaYJWdc1ph67?= =?us-ascii?Q?wiMVfZNTbMXop38T5m81bIqMPShZcji7rxeUlbdbKAgJAI4mAZ6LEgPNg0se?= =?us-ascii?Q?93sLADe+crNN+gSw5FYknyOLBe92FgzqXiWI91fOFQa1XJLUJEDMNjNVK9uj?= =?us-ascii?Q?hCNxlKOB1npske7ZMSos5k1yjzKVOa3VvToLofTsQp/aIY5kkrLTBxSYN73S?= =?us-ascii?Q?FfOFq8z8jlbk/ZvbO13LRG5Qgb6dK7qzpcJpnMSbarRGj2dFPbLE4X078gck?= =?us-ascii?Q?SSVEnMQ1icY5wwmUldDk/MmbEahU5PHuBucqB3F+wq6BP5O+NiiQLMsUfY8i?= =?us-ascii?Q?lQkX/+6yBDoxEbLWM12tImH6FnDaZMGuZqi4JrvOHKGc9xTr4FxsmbfRczPM?= =?us-ascii?Q?+Sau4gtw3cxeYPXXxXDhS++dMU4vhUdHY9x2Ol1ipvoSSJ5n1uCZslUTa/H0?= =?us-ascii?Q?IaZknky1T1kMfJy4Egk6e6xhZ8X7R4yJU6uMM/CAOuWKoZdaVCAzyB1MClnp?= =?us-ascii?Q?XGXOK1fL9TzGuxlU78mbsbO89Tuy1mcNxlKbEB47?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 01cb0b67-3520-44ea-cdad-08dc01c7f3c6 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9636.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Dec 2023 01:55:48.2938 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 1CydgajJnE0KN023wN/gUL7cvzhzREXgDFyDYuInoGe88q+UDE5P2fSIKcWQGNTvEylYyUIFHn3FqHXs3Q4IWg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7943 Variable firmware_stat is possible to be used without initialization. Signed-off-by: David Lin Fixes: 1c5d463c0770 ("wifi: mwifiex: add extra delay for firmware ready") Cc: stable@vger.kernel.org Reported-by: kernel test robot Reported-by: Dan Carpenter Closes: https://lore.kernel.org/r/202312192236.ZflaWYCw-lkp@intel.com/ --- v2: - corrected spelling error: possilbe -> possible. --- drivers/net/wireless/marvell/mwifiex/sdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/marvell/mwifiex/sdio.c b/drivers/net/wireless/marvell/mwifiex/sdio.c index ef3e68d1059c..75f53c2f1e1f 100644 --- a/drivers/net/wireless/marvell/mwifiex/sdio.c +++ b/drivers/net/wireless/marvell/mwifiex/sdio.c @@ -779,7 +779,7 @@ static int mwifiex_check_fw_status(struct mwifiex_adapter *adapter, { struct sdio_mmc_card *card = adapter->card; int ret = 0; - u16 firmware_stat; + u16 firmware_stat = 0; u32 tries; for (tries = 0; tries < poll_num; tries++) { base-commit: 783004b6dbda2cfe9a552a4cc9c1d168a2068f6c prerequisite-patch-id: ee10b03f813ab1e72d05c59aef4e07a26afdf678 -- 2.25.1