From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 19EFDA0C52; Thu, 12 Aug 2021 09:17:21 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3095441242; Thu, 12 Aug 2021 09:16:24 +0200 (CEST) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20075.outbound.protection.outlook.com [40.107.2.75]) by mails.dpdk.org (Postfix) with ESMTP id 2B88841240 for ; Thu, 12 Aug 2021 09:16:23 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Nmoc+TZQ6bc9tEr6+1m0a9v5wYo8c2Qpr9EbSruahhSKpvNGRkZpVlk4qM5WLnbg4Fc8i5JmCtkoMpLoixE+sLUEtFnFGl2mU9sFZQgjBepK4AE4A/OgI2l9Hv8P4CZuu1GSSoy0AdPCT8rUTAlauN2EKTfSWzCK7IPgh7BPW3p4Ys1cd0gE9YWXlzbijNXnF+5rpxGI6Ptx63shENZsWegSTSABGklEvCzRk0vVxr6H13pHSsWUM6cR/V8m4FG8QnpQ7FuWlmRyJwuXRT+7e9MSMikBfGe4gt6uVRDNnleJEdxIrkJPToDirBTFriuXypDDVG6hs+nFD2qoNc6ZqA== 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-SenderADCheck; bh=c7F7rP/nBXWCRmH1C+K5uK4NZdQiT0cKOLrMQTalBtQ=; b=eH2gdfzz9q7CxeXOtZMCTgTA7tr866H+/5ZGIo8UiI4/dYSJdpPoUG5SrUf/Tm3AXdneOBrJlnjcaIQ9Tgy0eARfsz3I4tQCuF7Bu0kA0r7zeaqkvFHDrN8vs5sAFIs/xRqQWjvDwrxg7YiAo7YXgRUuX1NSRh6xh0J10I94kmVGfByjRM7TOIGB2ltziIN1UMjvcntd8oxYgDrePUJAdqeY38Nt/Uaf6ATRb1YesmzlolOR6cC23TRWjysVusXC00dqGDWfIDEuv+bYE87ONiWQ+mUFUhuYvdIQsdyEcNXYdl9UPsR4X7JXoaS5mt3SRHy294A+I7MU0VW2uGICjA== 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=c7F7rP/nBXWCRmH1C+K5uK4NZdQiT0cKOLrMQTalBtQ=; b=gn1RPDvTG1zzQ1WYgApxNK3red3Ra46nBePDCVyLWwD7/F422oLBItYVRPaXDmRwSP/vRoVoMawWZW7EO1poQNCRm5Klv8v4TB6dB8ARGKZlQColNcNk3yzu4gAe5Uuqh2Jt1TYyd+bVArZq9uYm2N9LP/IY4Jv9YOnE+BhAs2E= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=nxp.com; Received: from DU2PR04MB8630.eurprd04.prod.outlook.com (2603:10a6:10:2dd::15) by DB9PR04MB8461.eurprd04.prod.outlook.com (2603:10a6:10:2bc::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.13; Thu, 12 Aug 2021 07:16:22 +0000 Received: from DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::2590:514a:df1f:a793]) by DU2PR04MB8630.eurprd04.prod.outlook.com ([fe80::2590:514a:df1f:a793%9]) with mapi id 15.20.4415.016; Thu, 12 Aug 2021 07:16:21 +0000 From: Hemant Agrawal To: dev@dpdk.org, gakhil@marvell.com Cc: Gagandeep Singh Date: Thu, 12 Aug 2021 12:42:38 +0530 Message-Id: <20210812071244.28799-11-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210812071244.28799-1-hemant.agrawal@nxp.com> References: <20210812071244.28799-1-hemant.agrawal@nxp.com> Content-Type: text/plain X-ClientProxiedBy: SG2PR02CA0105.apcprd02.prod.outlook.com (2603:1096:4:92::21) To DU2PR04MB8630.eurprd04.prod.outlook.com (2603:10a6:10:2dd::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from dpdk-xeon.ap.freescale.net (92.120.0.67) by SG2PR02CA0105.apcprd02.prod.outlook.com (2603:1096:4:92::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.14 via Frontend Transport; Thu, 12 Aug 2021 07:16:20 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 106846e4-b031-4220-1743-08d95d611630 X-MS-TrafficTypeDiagnostic: DB9PR04MB8461: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1002; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kqVpu6GkrEVySu+WneQx9zNsweTC12OPleuGHx5Bcjrsry9I7KG/HP+GuKuKnga/sTqibvDakFdp5mhQsU3xEcXQ2nAaV5DCECrzdFbAgMfEgAR8uCE88qQcVdEmQGc86EIwBA7YHj1MCqVKNsM4Uj5xri4NMPNSvp6MGsQFzwIxmgTvKXtzPNpM2tu37jfmMD4EWdSJc05wfiBhYU1wGZSvZCJpyYLzhwL/c96fVCH+QGkIjG6rBAYcrDvAy9A0M97J9E3YAs8rCKn/gpHrnEIdNckF/Qnr9Mk7MT5jFNHkrbkNOlYZtlu6QHVEbaSLLXZZgSfafoRhB4Vu1NDdQtSFgH+8A/8z+mEWl/qF52yw2QNQZsjHZZxIh9+8mW/wOm0qTkvotvrIIpLWHkDWIpxZBOjXj3Y55AdMWrVk6jn0VUFWRxIiAjU72OKljdhopT3ZeGvAIPzVVrCLjAzVgMrxJ5HgMCYIApkmB+/oI6gGkE1GMXaudSw3on76kEsK8UlnSxz+dgGNBf5qGEYOLk8WySvjypDwuvpEjfzEs3PL7sLqaB4PU54NCSAP16wFYjyGMq25BUlIY5Xx67YtEC5Br4IMDR15F45oaYZEqTEwRbT0JicuDaL4wEWLzdXPgBT9D2eo+a9ZQ38+hmg5nXTKsrgWGbNyZJj26dvkKD+hgOg9l0I8/x0/W7zxi1n6wau9K8kpPXVrTZajpAorwA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU2PR04MB8630.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(346002)(39860400002)(396003)(136003)(366004)(8936002)(956004)(6512007)(2616005)(2906002)(6666004)(36756003)(86362001)(4326008)(83380400001)(38350700002)(44832011)(478600001)(26005)(6506007)(66476007)(4744005)(186003)(52116002)(5660300002)(1076003)(66556008)(6486002)(38100700002)(8676002)(66946007)(316002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?Rt6SJk+z6voXNGJ4uia/KxlFNJ9Znv09hDaPhcjFnSkB9KkSpnLcpmKii1EZ?= =?us-ascii?Q?0OVfhFFG/1DKxxNHisGaYuNVpHPnMqtR2W2w1zJUzrZJR2ot6UJGUthOYn5k?= =?us-ascii?Q?2OnjsefADZ0dxQqomZyHJypALLBEqIsW9rarRJ5FFEaVPssVDclTDKlRDP7n?= =?us-ascii?Q?Ud9ht28KPMCdxN49fSDSVDasK0ZtuHcuC/fAKEIYNRfelPH248BjjCWfF66W?= =?us-ascii?Q?evKlyMXf+eq3MHXO1a52kWo3pYQl20X8Y/ffE+OLYMYmy1yfT5I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DDo3c/BeHTYmXRresDYQYbSLpKqX5SPd7Yg5KeurGU6FcY8ZQ/?= =?us-ascii?Q?07pCN+DtZVRUQsOammrJKtF8agdysYN/IwI6d4TzpkGnEZhrLlkV7fNHBT4g?= =?us-ascii?Q?FOEOeW9UH4+zU+bcco5bpiJWM2D13N6a2gK0RRSE5W3LEzciGQgN+Kx6amIE?= =?us-ascii?Q?EnKlgAgAHnTBFXo5n3NGxT6K?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 106846e4-b031-4220-1743-08d95d611630 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8630.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Aug 2021 07:16:21.8183 (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: euBysyNDjeY5Za7EFM+Mc6dBoSY8xLHx3/Igud2x/lKXCUdyl6ihRpu2mr91fgX6rlQn3HmGzVL5vevtGTlCCA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8461 Subject: [dpdk-dev] [RFC 10/16] crypto/dpaa2_sec: fix ctx memset size X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Gagandeep Singh Driver is doing memset on memory more than its allocation. This patch fixes the size of memset. Signed-off-by: Gagandeep Singh --- drivers/crypto/dpaa2_sec/dpaa2_sec_raw_dp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_raw_dp.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_raw_dp.c index 87a1a10268..51e316cc00 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_raw_dp.c +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_raw_dp.c @@ -1019,8 +1019,7 @@ dpaa2_sec_configure_raw_dp_ctx(struct rte_cryptodev *dev, uint16_t qp_id, RTE_SET_USED(qp_id); if (!is_update) { - memset(raw_dp_ctx, 0, sizeof(*raw_dp_ctx) + - sizeof(dpaa2_sec_session)); + memset(raw_dp_ctx, 0, sizeof(*raw_dp_ctx)); raw_dp_ctx->qp_data = dev->data->queue_pairs[qp_id]; } -- 2.17.1