From patchwork Thu Oct 24 01:59:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "zhangzekun (A)" X-Patchwork-Id: 13848179 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6E5E7156CA for ; Thu, 24 Oct 2024 02:03:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.188 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729735441; cv=none; b=Zbp7ittKVnK6eUAe1wwtSeGfLjLGhB3yPTeOzAFH/hHz+Bd2EK3OQJaHiGrFJPAEiSlBcUkbTtiqQbJcavBLfs1ZosReOJCGkjClzcZc6FeCSvrJ90FSDZ4LLZ+UZ+YTy2AhrvxaFFtXKpiINenCLKt1ofcvL5cpdA5GJ71gX9I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729735441; c=relaxed/simple; bh=PPyq2AsRP0lLlUEzlnZwVNStp6HOoNZowmdlQAzhf9E=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=b2toIu4fx9InBtcWXV9jGg24tyS8a9afPlp1c3JCiQ48bieW85o+toICktI422qXqKmNvuKb7ZKAXwt90ubHfaVVeMFtLJJDgXcYciXULvcxUTplKuCq7QGxM8uI6jshDQB74JfdHOyKly4wpdVdeM8jYb2qnEKZNqTiuWQWTcs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.188 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.105]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4XYq063f6TzdkNL; Thu, 24 Oct 2024 10:01:26 +0800 (CST) Received: from kwepemf500003.china.huawei.com (unknown [7.202.181.241]) by mail.maildlp.com (Postfix) with ESMTPS id 2301F1401F0; Thu, 24 Oct 2024 10:03:57 +0800 (CST) Received: from huawei.com (10.175.112.208) by kwepemf500003.china.huawei.com (7.202.181.241) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Thu, 24 Oct 2024 10:03:56 +0800 From: Zhang Zekun To: , , , , , , , , , , CC: , Subject: [PATCH net 0/2] Get the device_node before calling of_find_node_by_name() Date: Thu, 24 Oct 2024 09:59:07 +0800 Message-ID: <20241024015909.58654-1-zhangzekun11@huawei.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemf500003.china.huawei.com (7.202.181.241) X-Patchwork-Delegate: kuba@kernel.org of_find_node_by_name() will decrease the refount of the device node. Get the device_node before call to it. Zhang Zekun (2): net: bcmasp: Add missing of_node_get() before of_find_node_by_name() net: pse-pd: Add missing of_node_get() before of_find_node_by_name() drivers/net/ethernet/broadcom/asp2/bcmasp.c | 1 + drivers/net/pse-pd/tps23881.c | 1 + 2 files changed, 2 insertions(+)