From patchwork Wed Oct 26 01:46:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: shaozhengchao X-Patchwork-Id: 13020026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 42B39C38A2D for ; Wed, 26 Oct 2022 01:39:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232438AbiJZBjO (ORCPT ); Tue, 25 Oct 2022 21:39:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230428AbiJZBjM (ORCPT ); Tue, 25 Oct 2022 21:39:12 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FB66DCAC1 for ; Tue, 25 Oct 2022 18:39:09 -0700 (PDT) Received: from dggpeml500026.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Mxs0Z65D4zHvJ4; Wed, 26 Oct 2022 09:38:54 +0800 (CST) Received: from huawei.com (10.175.101.6) by dggpeml500026.china.huawei.com (7.185.36.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 26 Oct 2022 09:39:07 +0800 From: Zhengchao Shao To: , , , , CC: , , , , Subject: [PATCH net,v3 0/2] fix some issues in netdevsim driver Date: Wed, 26 Oct 2022 09:46:40 +0800 Message-ID: <20221026014642.116261-1-shaozhengchao@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.175.101.6] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpeml500026.china.huawei.com (7.185.36.106) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org When strace tool is used to perform memory injection, memory leaks and files not removed issues are found. Fix them. Zhengchao Shao (2): netdevsim: fix memory leak in nsim_drv_probe() when nsim_dev_resources_register() failed netdevsim: remove dir in nsim_dev_debugfs_init() when creating ports dir failed drivers/net/netdevsim/dev.c | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-)