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 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 To: dev@dpdk.org, Hemant Agrawal , Akhil Goyal 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: =?us-ascii?Q?L4BT11AM8QI+tgyE3TPYZqSyGWgovwE7x/W21G2mLdDfsTTBuBh7F9dI4QZU?= =?us-ascii?Q?39nZX4VCu0lOipXtXypiKfhK0r1ovasCehUUIfW0zA+MAkP3SiV2SJSqWtKI?= =?us-ascii?Q?hyLL8MsQKZs4h4uWz9A6iT9NvSCffisy+0WSNM15VWu0MJpeTYxCLQ8GKZRi?= =?us-ascii?Q?inC+xVUEFg1RNPLtbHMKf+tSuQs/tLppXI7WFngWuCWLC2hcUhQeAJRebCxQ?= =?us-ascii?Q?vCLdiHoUL4reffuPWhwlj2bcBjGCUNduIM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vm0HeUR46wHbdocpaBiUj0nKe1QI9D7x3cSExTAU9zmM1uP91Ua/m8wiSSkq?= =?us-ascii?Q?fNeNRjiRYym0qxKryqyHcvkjTW/x+MM9PO7GE+/wwIwPLCJh+tF8La901YRZ?= =?us-ascii?Q?g2mrrCERgMfoaRX8sIJieiszW8u8c7Xg/FEGQ+4mv1IUI9hsX5k1OTLx87me?= =?us-ascii?Q?zSZip14k5jXE5jNylVaaMnYv7Ye7g04i3NllqSrleAPvpwPgUZ+E9tY1kGiD?= =?us-ascii?Q?8Nbt9fLzL6WP/xQ/ALCSQY/g4rUttbsrBkAqBMwCBmCKZnAFIQ=3D=3D?= 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: =?us-ascii?Q?vAnPaj7oP2mU5TMSO7K4YbJxidLdHdWJkTE1N3XSz7YtIj/0kxe6MqwefLA2?= =?us-ascii?Q?Gc15ZX7rcseF7Dcihs8OMB6UxYDyzc5I8hiioL2JHmtztVfPqM4HXmTbMinq?= =?us-ascii?Q?g/xAYwq1vR0r+cPkW3e1NDEkmr6NxszqrkmELza/1wONmG0dIigJDfd/GHmE?= =?us-ascii?Q?8gg1ykGRyqrcs9TW5iLihVIDTT7lLe1ox2FCZy39+mX54uPLdDyNg0r54Ulq?= =?us-ascii?Q?CdYEec9ygWa40Zh90hGAkCozRj9fuzhCnCL6xaOTpAj+tM52NMzP+mW4MYdC?= =?us-ascii?Q?RtR+zfOr5lz2/HjMqNrAIi78EXf3+C0hkQhzdQyYbUTmaZVFNAZn6UEFl9h0?= =?us-ascii?Q?vPsRUPAL19N5DROmcSo2YSRrkI3ScM0+t96sJ8bfB5D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/nyueAYrtjfLG3Z7nff9d7+dF8E9h0Mf3VFwQr8y?= =?us-ascii?Q?VXXG9RsFJOcvyvXjIl62CP4CcLCSFLt9nyzORYcHc0DSHpvP0hmLDhPlG+bG?= =?us-ascii?Q?jnLGmSzH65LWcrTP4D/f7iPeoDNbF40VZxUcFoIBE3TgXM2pFrIq5rS0OxGY?= =?us-ascii?Q?aQLXH3v9xfTT42cDoDf4LjAfsyFaCsMJA0Ox40Ayy+PgVUyWLqJTVnH7hJOz?= =?us-ascii?Q?MPnuK35MQryMLQF40B+M99Esw7g8g/1g827X2BTvlsL2DEJKBE5G0xtt0Eva?= =?us-ascii?Q?blvdCxlOndGnZjI9mOI=3D?= 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 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 --- 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; } -- 2.25.1