From patchwork Fri Sep 8 04:00:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jinjie Ruan X-Patchwork-Id: 13377028 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3F849EE14D7 for ; Fri, 8 Sep 2023 04:01:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=OEzyoUUwIem0uYrCVxE5eurjKZPLB2682DaZB2q7Uak=; b=VgjzsYwBs0+n7K IcMqF9ZQASu6/D5eMgMtgkmYxY+bEjqfDY3YKNf0EB4iHPAiz1JbquKtENaMlqM7TnyXpOVMZRMkN ASmF21cKMGwSX80yiqKkkkxDPK+yKW+3Jt30QYli7z0EX4VQIjkYVEJ8cC6IqJmKmWTLgt1st9z25 WZCF95JN9jg66JG6VGd+s7eh6RfMiZGhgzfVWw9QwyVwLskLl8SoLvUMhtRKCrdrURw8gDr9G6RAD OBi/8hM9Xz2LFZeXqvUuIl6SpT5RDMzj88Wa1xbpJQvNGl8cdRH07VZnZsQzbJbxG5f+MqGXBcB3a dYSJpPgVnSXDx4JIWJDQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qeSfX-00D1lN-0M; Fri, 08 Sep 2023 04:00:31 +0000 Received: from szxga03-in.huawei.com ([45.249.212.189]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qeSfT-00D1kC-2g for linux-arm-kernel@lists.infradead.org; Fri, 08 Sep 2023 04:00:29 +0000 Received: from kwepemi500008.china.huawei.com (unknown [172.30.72.55]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4Rhj3X06ZfzMlC7; Fri, 8 Sep 2023 11:56:55 +0800 (CST) Received: from huawei.com (10.90.53.73) by kwepemi500008.china.huawei.com (7.221.188.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Fri, 8 Sep 2023 12:00:17 +0800 From: Jinjie Ruan To: , , , , , , , , CC: Subject: [PATCH net 0/5] net: microchip: sparx5: Fix some memory leaks in vcap_api_kunit Date: Fri, 8 Sep 2023 12:00:06 +0800 Message-ID: <20230908040011.2620468-1-ruanjinjie@huawei.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Originating-IP: [10.90.53.73] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemi500008.china.huawei.com (7.221.188.139) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230907_210028_064261_C6264B5A X-CRM114-Status: UNSURE ( 4.64 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org There are some memory leaks in vcap_api_kunit, this patchset fixes them. Jinjie Ruan (5): net: microchip: sparx5: Fix memory leak for vcap_api_rule_add_keyvalue_test() net: microchip: sparx5: Fix memory leak for vcap_api_rule_add_actionvalue_test() net: microchip: sparx5: Fix possible memory leak in vcap_api_encode_rule_test() net: microchip: sparx5: Fix possible memory leaks in test_vcap_xn_rule_creator() net: microchip: sparx5: Fix possible memory leaks in vcap_api_kunit .../ethernet/microchip/vcap/vcap_api_kunit.c | 58 +++++++++++++++++-- 1 file changed, 53 insertions(+), 5 deletions(-)