Message ID | 20240806084136.3212615-2-g.singh@nxp.com (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Thomas Monjalon |
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7F22845748; Tue, 6 Aug 2024 10:41:59 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E974840E15; Tue, 6 Aug 2024 10:41:57 +0200 (CEST) Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2078.outbound.protection.outlook.com [40.107.247.78]) by mails.dpdk.org (Postfix) with ESMTP id 973FA40E15; Tue, 6 Aug 2024 10:41:56 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=GWHkav21Qie+1LpOYNi0pgfh6Rp8vMmwKv9E9vKJox5elCIqQCS/30eYGlkj5dOcIzttsfdbzrr2s/XgVRIc3//37hesrn+V3gVD4IDbYV5x/0D9D76NjoajFUKR8KY9KdRrsJvM9Cx2/Ile/3HOzGAopjwameTN5eWpyo2pVt57RZ6ouEIxlQ60MtfOsDHomUJgXM0w6FXJfSGM219ctrFMA6r2srOHVcdoax/8zYqwgnVRipvlkV61/bn+U7t5su80e/7Gll1YiJSMl54F2yhqhAAy9zzSfa7pYDCcdVMzBGGzEhCOJF+Hg9aiAcyEtITJr/mALA9cwN8D1epbiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=myJH23TopUMXiv6044qAFsqwF5LeGM/UwYNeOa9kebE=; b=q68xM+n+GeSzh0Ku582QXUEZkBhcZ5zm3pX5FgvMLCTzsdejeMmgud0dq2YpBcSZXBwHv0Fg4NsJCHv/bKQMrPRa99aolk5Xh6B+dIlH5dNLA0FN/TONdaxX3G2Rw3+1ZtCcBYCatTPArxy3OXsWWElLNHkYjnwfQ4Jw22oZMJlqUmdhQtX7vBd/smtYXi9DrxWM4YquvjYKbhiG5MQSV026eOX2jRZy6oR83TZ/bqLXQeWW3evKHgV/KeKsDtjNHrZpCoj3Js15Ky05HoeCc2kDqBGumCjmUsB6KFd5YdcJY8wpyCeQdjNwvH8mwlUqlb630zz/3hFaReQ6oa+Nqg== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=myJH23TopUMXiv6044qAFsqwF5LeGM/UwYNeOa9kebE=; b=VRt0/jKz2vckstzYuCTSu0LfffqQz4+kfM1FollJu3O2mRZIMt1Ona3XtqAId6UWx6+hlbH+G6OYkM8zSnBOObvfnPRLZQ9T3OpH9DByzDeqiSc9AIXz3oBfz8f0uPLjOYHqj2kIiJratLYwolM1UE6wtC8khJzTwcBugYdqRGTmGmlye1KKR40PaQUijp7WAsfkaLHKpk8HZEKt7GpsYQMdHr8uIySvetlnvAm3ysbovy7vdCTPRfroUj9JujlTLvXytdo6apBN7bcl+DwuhrIMl9zNXiQlKa8iOiB0+b0UMaWg7JbdF6dC8VdyI9x1OFdfYekZyqYvoqXWrY93tQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8SPR01MB0024.eurprd04.prod.outlook.com (2603:10a6:20b:3d0::24) by PR3PR04MB7210.eurprd04.prod.outlook.com (2603:10a6:102:8f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.26; Tue, 6 Aug 2024 08:41:54 +0000 Received: from AS8SPR01MB0024.eurprd04.prod.outlook.com ([fe80::c634:479e:8f8a:a325]) by AS8SPR01MB0024.eurprd04.prod.outlook.com ([fe80::c634:479e:8f8a:a325%7]) with mapi id 15.20.7828.023; Tue, 6 Aug 2024 08:41:54 +0000 From: Gagandeep Singh <g.singh@nxp.com> To: dev@dpdk.org, Hemant Agrawal <hemant.agrawal@nxp.com>, Akhil Goyal <gakhil@marvell.com> Cc: akhil.goyal@nxp.com, stable@dpdk.org Subject: [v1 1/7] crypto/dpaa2_sec: fix memory leak Date: Tue, 6 Aug 2024 14:11:30 +0530 Message-Id: <20240806084136.3212615-2-g.singh@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240806084136.3212615-1-g.singh@nxp.com> References: <20240806084136.3212615-1-g.singh@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR01CA0041.apcprd01.prod.exchangelabs.com (2603:1096:4:193::15) To AS8SPR01MB0024.eurprd04.prod.outlook.com (2603:10a6:20b:3d0::24) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8SPR01MB0024:EE_|PR3PR04MB7210:EE_ X-MS-Office365-Filtering-Correlation-Id: 39fc6fc2-f38f-40e0-5ee4-08dcb5f39f94 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|52116014|376014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: L4BT11AM8QI+tgyE3TPYZqSyGWgovwE7x/W21G2mLdDfsTTBuBh7F9dI4QZU39nZX4VCu0lOipXtXypiKfhK0r1ovasCehUUIfW0zA+MAkP3SiV2SJSqWtKIhyLL8MsQKZs4h4uWz9A6iT9NvSCffisy+0WSNM15VWu0MJpeTYxCLQ8GKZRiinC+x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mrrCERgMfoaRX8sIJieiszW8u8c7Xg/FEGQ+4mv1IUI9hsX5k1OTLx87mezSZip14k5jXE5jNylVaaMnYv7Ye7g04i3NllqSrleAPvpwPgUZ+E9tY1kGiD8Nbt9fLzL6WP/xQ/ALCSQY/g4rUttbsrBkAqBMwCBmCKZnAFIQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8SPR01MB0024.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(52116014)(376014)(366016)(1800799024)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: vAnPaj7oP2mU5TMSO7K4YbJxidLdHdWJkTE1N3XSz7YtIj/0kxe6MqwefLA2Gc15ZX7rcseF7Dcihs8OMB6UxYDyzc5I8hiioL2JHmtztVfPqM4HXmTbMinqg/xAYwq1vR0r+cPkW3e1NDEkmr6NxszqrkmELza/1wONmG0dIigJDfd/GHmE8gg1ykGRyqrcs9TW5iLihVIDTT7lLe1ox2FCZy39+mX54uPLdDyNg0r54UlqCdYEec9ygWa40Zh90hGAkCozRj9fuzhCnCL6xaOTpAj+tM52NMzP+mW4MYdCRtR+zfOr5lz2/HjMqNrAIi78EXf3+C0hkQhzdQyYbUTmaZVFNAZn6UEFl9h0vPsRUPAL19N5DROmcSo2YSRrkI3ScM0+t96sJ8bfB5DOUYZV97OKL5XZWeoJOJBTleDr//DhZB794eiLFfqBWKnocarUfg6SJdFqTHHzxV2ioZWc6Ty4X3I54oukVa0fne99tgq8avMCuEncF6/VOMODBO03qq5IC7wMtQ1M3fIiFuLHwepXVFQBW0rwxlLi+3DXzc3ILFT8WFCZ5UkhW8m9pYazrYN9wN4oQYMXnxEfiRgRDQbvKGZd6dIuzode16PBel1iYlITa+G19ilZEi4GBBRnAk+AW+8uzW9Ab+Aa1h+LycksmKmXKlZBQGRWjaSA6S5Bnbu4+/4Wz9i9nM+IQo+qo/ksum6qmcRFRMGD7WHAYTj7mHEcI7O7m9lbXdHFLRtPHsBF1gcEI4O59NE/+vNk6HFjp/fsDniqWA5qSWSAj/ceVslFjkqZGTus0hNOsOsjygXh0iPZwtU7OXh6r8aey37tbwtVhdV+ymv1QADL3SaFJH3N6/284bkAyH2oJ+LkZ+SmviLSsqOB2ABTTeOnxf/pen4Uk31y4HiUvOH1MIvHypu2hxwEJiXvY6ylMvoMjuPbJW1UFD6CVOGz/YwtW89YR8Uq9UTYAJpPPGs32VFFohKkuvWOVZ1fRlnxeC8IK5AR27mdzV65CuasoYLhe3UqaRUdRhrpXQV0xuIBBEp4M3ofv/UpvbFTI5es75wjqwoFKA0sggad4/R04+az0F0Pb+mJl77wZdD6WTPzKfUKjsQMaHsxzS4esxI7H5xM8ImSlHb5fYIEKrcbGKEqs2HldEafeirQ1ankJkYESxEVk9DAtc8nhCVwxKziB9DVcw07T4LHtCin6/8oAihRmQDE83YKjgtTL6RP4WLO7OIdATRo4QlDS3vIVUHi4CQg9jOFm5nAKkMU6N2D/nyueAYrtjfLG3Z7nff9d7+dF8E9h0Mf3VFwQr8yVXXG9RsFJOcvyvXjIl62CP4CcLCSFLt9nyzORYcHc0DSHpvP0hmLDhPlG+bGjnLGmSzH65LWcrTP4D/f7iPeoDNbF40VZxUcFoIBE3TgXM2pFrIq5rS0OxGYaQLXH3v9xfTT42cDoDf4LjAfsyFaCsMJA0Ox40Ayy+PgVUyWLqJTVnH7hJOzMPnuK35MQryMLQF40B+M99Esw7g8g/1g827X2BTvlsL2DEJKBE5G0xtt0EvablvdCxlOndGnZjI9mOI= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 39fc6fc2-f38f-40e0-5ee4-08dcb5f39f94 X-MS-Exchange-CrossTenant-AuthSource: AS8SPR01MB0024.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Aug 2024 08:41:54.1797 (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: algqO0HM0pElHbnaqdFW3+FuxYwl8+n1VyohmE4U+IsAOEkRFKpVncwgStqYmftd X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR04MB7210 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Series |
DPAA2 crypto changes
|
|
Checks
Context | Check | Description |
---|---|---|
ci/checkpatch | success | coding style OK |
Commit Message
Gagandeep Singh
Aug. 6, 2024, 8:41 a.m. UTC
fixing memory leak while creating the PDCP session
with invalid data.
Fixes: bef594ec5cc8 ("crypto/dpaa2_sec: support PDCP offload")
Cc: akhil.goyal@nxp.com
Cc: stable@dpdk.org
Signed-off-by: Gagandeep Singh <g.singh@nxp.com>
---
drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c index c1f7181d55..e0b8bacdb8 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c @@ -3420,6 +3420,7 @@ dpaa2_sec_set_pdcp_session(struct rte_cryptodev *dev, } } else { DPAA2_SEC_ERR("Invalid crypto type"); + rte_free(priv); return -EINVAL; }