[PATCH] pid: Remove unneeded hash header file

2019-04-29 Thread Timmy Li
Hash functions are not needed since idr is used now. Let's remove hash header file for cleanup. Signed-off-by: Timmy Li --- kernel/pid.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/pid.c b/kernel/pid.c index 20881598bdfa..89548d35eefb 100644 --- a/kernel/pid.c +++ b/kernel/

Re: [PATCH] arm64: PCI: free all allocated memory in case of failure

2017-05-22 Thread Timmy Li
Hi Lorenzo, Thanks for your review and sorry for the late reply. On 2017/5/12 18:28, Lorenzo Pieralisi wrote: > On Fri, May 12, 2017 at 05:57:47PM +0800, Timmy Li wrote: >> There are some memory allocations in pci_acpi_scan_root(). But >> ri, root_ops and ri->cfg are not

[PATCH] arm64: PCI: free all allocated memory in case of failure

2017-05-12 Thread Timmy Li
There are some memory allocations in pci_acpi_scan_root(). But ri, root_ops and ri->cfg are not freed properly in failure cases, which results in memory leaks. This patch fixes the potential memory leaks. Signed-off-by: Timmy Li --- arch/arm64/kernel/pci.c | 22 ++ 1 f

[PATCH net v2] net: hns: fix ethtool_get_strings overflow in hns driver

2017-05-01 Thread Timmy Li
6b 6b 6b 70 70 65 31 5f 74 78 5f ty.kppe1_tx_ [ 43.115232] 010: 70 6b 74 5f 65 72 72 5f 63 73 75 6d 5f 66 61 69 pkt_err_csum_fai Signed-off-by: Timmy Li --- Changelog: v1 -> v2: * Remove unnecessary parenthesis --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c | 2 +- dr

[PATCH net] net: hns: fix ethtool_get_strings overflow in hns driver

2017-04-27 Thread Timmy Li
6b 6b 6b 70 70 65 31 5f 74 78 5f ty.kppe1_tx_ [ 43.115232] 010: 70 6b 74 5f 65 72 72 5f 63 73 75 6d 5f 66 61 69 pkt_err_csum_fai Signed-off-by: Timmy Li --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c | 2 +- drivers/net/ethernet/hisilicon/hns/hns_dsaf_ppe.c | 2 +- drive