]https://lore.kernel.org/netdev/20201110092933.3342784-1-zhangqilo...@huawei.com/T/#t
Fixes: dd8088d5a896 ("PM: runtime: Add pm_runtime_resume_and_get to deal with
usage counter")
Signed-off-by: Zhang Qilong
---
Changelog:
v2
- change the fixes tag.
---
drivers/net/ethernet/freescale/
If kvaser_pciefd_bus_on failed, we should call close_candev
to avoid reference leak.
Fixes: 26ad340e582d3 ("can: kvaser_pciefd: Add driver for Kvaser PCIEcan
devices")
Signed-off-by: Zhang Qilong
---
drivers/net/can/kvaser_pciefd.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletio
de85acc23f ("can: c_can: Add d_can raminit support")
Signed-off-by: Zhang Qilong
---
drivers/net/can/c_can/c_can.c | 18 ++
1 file changed, 14 insertions(+), 4 deletions(-)
diff --git a/drivers/net/can/c_can/c_can.c b/drivers/net/can/c_can/c_can.c
index 0420f09f2b70..becfd
The patch series fix the error handling to avoid the reference
leak and wrong state for the net device.
Zhang Qilong (2):
can: c_can: Fix error handling in c_can_power_up
can: kvaser_pciefd: Fix error handling in kvaser_pciefd_open
drivers/net/can/c_can/c_can.c | 18
]https://lore.kernel.org/netdev/20201110092933.3342784-1-zhangqilo...@huawei.com/T/#t
Fixes: dd8088d5a8969dc2 ("PM runtime: Add pm_runtime_resume_and_get to deal
with usage counter")
Signed-off-by: Zhang Qilong
---
drivers/net/ethernet/freescale/fec_main.c | 10 +-
inc
In the error handling, we should goto the probe_exit_candev
to free ndev to prevent memory leak.
Fixes: dabf54dd1c63 ("can: ti_hecc: Convert TI HECC driver to DT only driver")
Signed-off-by: Zhang Qilong
---
drivers/net/can/ti_hecc.c | 13 -
1 file changed, 8 insert
genlmsg_cancel() needs to be called in the error path of
inet6_fill_ifmcaddr and inet6_fill_ifacaddr to cancel
the message.
Fixes: 203651b665f72 ("ipv6: add inet6_fill_args")
Reported-by: Hulk Robot
Signed-off-by: Zhang Qilong
---
net/ipv6/addrconf.c | 8 ++--
1 file changed, 6
with the usage counter for better coding and
view. Then, we replace pm_runtime_resume_and_get with it in fec_main.c
to avoid it.
[0]https://lkml.org/lkml/2020/6/14/88
[1]https://patchwork.ozlabs.org/project/linux-tegra/list/?series=178139
Zhang Qilong (2):
PM: runtime: Add pm_runtime_resume_and_get
with the usage counter for better coding.
[0]https://lkml.org/lkml/2020/6/14/88
[1]https://patchwork.ozlabs.org/project/linux-tegra/list/?series=178139
Signed-off-by: Zhang Qilong
---
include/linux/pm_runtime.h | 21 +
1 file changed, 21 insertions(+)
diff --git a/include/linux
reference count leak. Moreover,
this device cannot enter the idle state and always stay busy or other
non-idle state later. So we fixed it by replacing it with
pm_runtime_resume_and_get.
Fixes: 8fff755e9f8d0 ("net: fec: Ensure clocks are enabled while using mdio
bus")
Signed-off-by: Zh
and view. Then, we replace pm_runtime_get_sync
with it in fec_main.c
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 | 12 -
include
.
[0]https://lkml.org/lkml/2020/6/14/88
[1]https://patchwork.ozlabs.org/project/linux-tegra/patch/20200520095148.10995-1-dinghao@zju.edu.cn/
Signed-off-by: Zhang Qilong
---
include/linux/pm_runtime.h | 30 ++
1 file changed, 30 insertions(+)
diff --git a/include
reference count leak. Moreover,
this device cannot enter the idle state and always stay busy or other
non-idle state later. So we fixed it by replacing it with
pm_runtime_general_get.
Fixes: 8fff755e9f8d0 ("net: fec: Ensure clocks are enabled while using mdio
bus")
Signed-off-by: Zh
reference count leak. Moreover,
this device cannot enter the idle state and always stay busy or other
non-idle state later. So we fixed it by replacing it with
gene_pm_runtime_get_sync.
Fixes: 8fff755e9f8d0 ("net: fec: Ensure clocks are enabled while using mdio
bus")
Signed-off-by: Zh
.
[0]https://lkml.org/lkml/2020/6/14/88
[1]https://patchwork.ozlabs.org/project/linux-tegra/patch/20200520095148.10995-1-dinghao@zju.edu.cn/
Signed-off-by: Zhang Qilong
---
include/linux/pm_runtime.h | 32
1 file changed, 32 insertions(+)
diff --git a/include
/lkml/2020/6/14/88
[1]https://patchwork.ozlabs.org/project/linux-tegra/patch/20200520095148.10995-1-dinghao@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
reference count leak.
Moreover, this device cannot enter the idle state and always
stay busy or other non-idle state later. So we fixed it through
adding pm_runtime_put_noidle.
Fixes: 8fff755e9f8d0 ("net: fec: Ensure clocks are enabled while using mdio
bus")
Signed-off-by: Zhang Qilong
---
d
me PM")
Signed-off-by: Zhang Qilong
---
Changelog:
v2
- removed empty lines between tags.
---
drivers/net/can/flexcan.c | 8 ++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/net/can/flexcan.c b/drivers/net/can/flexcan.c
index 881799bd9c5e..c42a1ae5ee46 100644
--- a/d
me PM")
Signed-off-by: Zhang Qilong
---
drivers/net/can/flexcan.c | 8 ++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/net/can/flexcan.c b/drivers/net/can/flexcan.c
index 881799bd9c5e..c42a1ae5ee46 100644
--- a/drivers/net/can/flexcan.c
+++ b/drivers/net/can/flexcan.c
In the error path of iwl_mvm_mac_ctxt_beacon_changed,
the beacon it not be freed, and use dev_kfree_skb to
free it.
Signed-off-by: Zhang Qilong
---
drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/net/wireless/intel
The 'break' is unnecessary because of previous 'return',
and we could discard it.
Signed-off-by: Zhang Qilong
---
drivers/net/ethernet/8390/mac8390.c | 7 ---
1 file changed, 7 deletions(-)
diff --git a/drivers/net/ethernet/8390/mac8390.c
b/drivers/net/ethernet/
Using size of "net//neigh/" is not clear, the use
of stitching("net/" + /neigh") should be clearer.
Signed-off-by: Zhang Qilong
---
net/core/neighbour.c | 9 -
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/net/core/neighbour.c b/net/core/neigh
The normal path has only one slash.
Signed-off-by: Zhang Qilong
---
net/core/neighbour.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/core/neighbour.c b/net/core/neighbour.c
index 8e39e28b0a8d..503501842a7d 100644
--- a/net/core/neighbour.c
+++ b/net/core/neighbour.c
23 matches
Mail list logo