From patchwork Sat Oct 22 04:48:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: shaozhengchao X-Patchwork-Id: 13015764 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 F1B43C433FE for ; Sat, 22 Oct 2022 04:41:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229909AbiJVEla (ORCPT ); Sat, 22 Oct 2022 00:41:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229913AbiJVElZ (ORCPT ); Sat, 22 Oct 2022 00:41:25 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C909189C0D for ; Fri, 21 Oct 2022 21:41:23 -0700 (PDT) Received: from dggpeml500026.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4MvT7W58hwzVhqS; Sat, 22 Oct 2022 12:36:39 +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; Sat, 22 Oct 2022 12:41:20 +0800 From: Zhengchao Shao To: , , , , CC: , , , , Subject: [PATCH net,v2 0/2] fix some issues in netdevsim driver Date: Sat, 22 Oct 2022 12:48:45 +0800 Message-ID: <20221022044847.61995-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: dggems705-chm.china.huawei.com (10.3.19.182) 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 Fix some issues in netdevsim driver. --- v2: release resources in nsim_dev_resources_register() when devl_resource_register() failed, and modify fixes tag -- 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(-)