[PATCH] ARM: socfpga: Fix object reference leaks in socfpga_setup_ocram_self_refresh

2019-03-26 Thread Huang Zijiang
The of_find_device_by_node() takes a reference to the underlying device structure, we should release that reference. Signed-off-by: Huang Zijiang --- arch/arm/mach-socfpga/pm.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-socfpga/pm.c b/arch/arm/mach

[PATCH] sched/core: Remove BUG_ON()

2019-02-13 Thread Huang Zijiang
pick_next_task is never return NULL because idle task will return when cpu is idle. Signed-off-by: Huang Zijiang --- kernel/sched/core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index dbe9a3f..1de1a85 100644 --- a/kernel/sched/core.c +++ b

[PATCH] net: hns: Fix object reference leaks in hns_dsaf_roce_reset()

2019-02-13 Thread Huang Zijiang
The of_find_device_by_node() takes a reference to the underlying device structure, we should release that reference. Signed-off-by: Huang Zijiang --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/hisilicon/hns

[PATCH 2/2] net: Replace dev_kfree_skb_any by dev_consume_skb_any

2019-02-13 Thread Huang Zijiang
The skb should be freed by dev_consume_skb_any() efx_tx_tso_fallback() when skb is still used. The skb is be replaced by segments, so the original skb should be consumed(not drop). Signed-off-by: Huang Zijiang --- drivers/net/ethernet/sfc/tx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 1/2] net:ethernet:cadence: Replace dev_kfree_skb_any by dev_consume_skb_any

2019-02-13 Thread Huang Zijiang
The skb should be freed by dev_consume_skb_any() in macb_pad_and_fcs() when *skb is still used. The *skb is be replaced by nskb, so the original *skb should be consumed(not drop). Signed-off-by: Huang Zijiang --- drivers/net/ethernet/cadence/macb_main.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH] net:dl2k: Replace dev_kfree_skb_irq by dev_consume_skb_irq

2019-02-13 Thread Huang Zijiang
dev_consume_skb_irq() should be called when skb xmit done.It makes drop profiles more friendly. Signed-off-by: Huang Zijiang --- drivers/net/ethernet/dlink/dl2k.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/dlink/dl2k.c b/drivers/net/ethernet/dlink

[PATCH] net:dl2k: Modify the code style escaping the warning

2019-02-13 Thread Huang Zijiang
modify the code style in order to removing the following warning when excute the script checkpatch.pl WARNING: space prohibited between function name and open parenthesis '(' Signed-off-by: Huang Zijiang --- drivers/net/ethernet/dlink/dl2k.c | 4 ++-- 1 file changed, 2 insert

[PATCH] isdn:hisax: Replace dev_kfree_skb_any by dev_consume_skb_any

2019-02-13 Thread Huang Zijiang
The skb should be freed by dev_consume_skb_any() in hfcpci_fill_fifo() when bcs->tx_skb is still used. The bcs->tx_skb is be replaced by skb_dequeue(&bcs->squeue), so the original bcs->tx_skb should be consumed(not drop). Signed-off-by: Huang Zijiang --- drivers/isdn/hisax/hfc

[PATCH] EDAC, altera: Add missing of_node_put()

2019-02-13 Thread Huang Zijiang
The call to of_parse_phandle returns a node pointer with refcount incremented thus it must be explicitly decremented here after the last usage. Signed-off-by: Huang Zijiang --- drivers/edac/altera_edac.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/edac

[tip:x86/cleanups] x86/e820: Replace kmalloc() + memcpy() with kmemdup()

2019-01-13 Thread tip-bot for Huang Zijiang
Commit-ID: 345dca4ca7e65a46bf0b6e2e6b8ab2e998ec6e91 Gitweb: https://git.kernel.org/tip/345dca4ca7e65a46bf0b6e2e6b8ab2e998ec6e91 Author: Huang Zijiang AuthorDate: Sat, 12 Jan 2019 15:16:24 +0800 Committer: Borislav Petkov CommitDate: Sun, 13 Jan 2019 15:11:35 +0100 x86/e820: Replace