From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 3016C8468; Thu, 25 Jul 2024 14:48:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721918896; cv=none; b=rHdW7XsoZcBarh7xqELbKv8GZt6AC7wZqh5Be7hFYzPfeI4ELfzY4eJi2uxhxE+nFFAzhbhIuWM7HqK/p9Ss79teXDaAroyrOlLfyju2qwjbjrQq59VVyvI/tWgOaCukvTodabwzi0kbrfy/I9fTIQS+nrGgEHTsKirMC4DucR0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721918896; c=relaxed/simple; bh=tXts4WTbpc8Hye/I5uTKdgfCacb/W+415fSqSLZx2aA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VUE4sxypLuP2w2gAWsv25zWBjZINsfS5o95Rli9aUwmcSB0JSjnuwO1NX7WBC2OwpraaqNjRAg45a8E98I8BKaOvB0m9DYpP1QpOeRxYT93MKpp6bBXegClaZcRZcq8+uKzcm05oGRcH5Pi5xoKXxQLDP+pwA841YJkI9BgIFG4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VHUV+PAr; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="VHUV+PAr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9571DC116B1; Thu, 25 Jul 2024 14:48:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1721918896; bh=tXts4WTbpc8Hye/I5uTKdgfCacb/W+415fSqSLZx2aA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VHUV+PArtXvOwexFMcOs3+dLuDl3LdohIfGr6O6gl156QLcRaIZDUKPfmzIcTquPW uxsPjvfGgAjEtj5FWxwLfroR2OirGddT30c6oCqjBnh4wks5/9MCls0Xr+eXydwuaK +XOdW5zmG5jXc5k6jbtLHFJOnp6Vl8329+i0IZNQ= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Saurav Kashyap , Nilesh Javali , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 5.10 03/59] scsi: qedf: Set qed_slowpath_params to zero before use Date: Thu, 25 Jul 2024 16:36:53 +0200 Message-ID: <20240725142733.393417308@linuxfoundation.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240725142733.262322603@linuxfoundation.org> References: <20240725142733.262322603@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Saurav Kashyap [ Upstream commit 6c3bb589debd763dc4b94803ddf3c13b4fcca776 ] Zero qed_slowpath_params before use. Signed-off-by: Saurav Kashyap Signed-off-by: Nilesh Javali Link: https://lore.kernel.org/r/20240515091101.18754-4-skashyap@marvell.com Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/qedf/qedf_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c index 6923862be3fbc..2536da96130ea 100644 --- a/drivers/scsi/qedf/qedf_main.c +++ b/drivers/scsi/qedf/qedf_main.c @@ -3453,6 +3453,7 @@ static int __qedf_probe(struct pci_dev *pdev, int mode) } /* Start the Slowpath-process */ + memset(&slowpath_params, 0, sizeof(struct qed_slowpath_params)); slowpath_params.int_mode = QED_INT_MODE_MSIX; slowpath_params.drv_major = QEDF_DRIVER_MAJOR_VER; slowpath_params.drv_minor = QEDF_DRIVER_MINOR_VER; -- 2.43.0