[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201109080938.4174745-1-zhangqilong3@huawei.com>
Date: Mon, 9 Nov 2020 16:09:36 +0800
From: Zhang Qilong <zhangqilong3@...wei.com>
To: <rjw@...ysocki.net>, <fugang.duan@....com>, <davem@...emloft.net>,
<kuba@...nel.org>
CC: <linux-pm@...r.kernel.org>, <netdev@...r.kernel.org>
Subject: [PATCH 0/2] Fix usage counter leak by adding a general sync ops
Many caller forget to decrease the usage counter when call
pm_runtime_get_sync. This problem has been discussed in detail,
[0][1] and we add gene_pm_runtime_get_sync ops to deal with usage
counter for better coding. Then, we replace pm_runtime_get_sync
with it in fec_main.c
[0]https://lkml.org/lkml/2020/6/14/88
[1]https://patchwork.ozlabs.org/project/linux-tegra/patch/20200520095148.10995-1-dinghao.liu@zju.edu.cn/
Zhang Qilong (2):
PM: runtime: Add a general runtime get sync operation to deal with
usage counter
net: fec: Fix reference count leak in fec series ops
drivers/net/ethernet/freescale/fec_main.c | 10 +++----
include/linux/pm_runtime.h | 32 +++++++++++++++++++++++
2 files changed, 37 insertions(+), 5 deletions(-)
--
2.25.4
Powered by blists - more mailing lists