[PATCH net-next] net: Remove useless function skb_header_release

2017-09-19 Thread gfree . wind
From: Gao Feng There is no one which would invokes the function skb_header_release. So just remove it now. Signed-off-by: Gao Feng --- include/linux/skbuff.h | 16 1 file changed, 16 deletions(-) diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 72299ef..ce63

[PATCH] module: Unify the return value type of try_module_get

2017-04-18 Thread gfree . wind
From: Gao Feng The prototypes of try_module_get are different with different macro. When enable module and module unload, it returns bool, but others not. Now unify their return value type as bool. Signed-off-by: Gao Feng --- include/linux/module.h | 6 +++--- 1 file changed, 3 insertions(+),

[PATCH net 1/1] proc/sysctl: Fix the int overflow for jiffies conversion

2017-03-29 Thread gfree . wind
From: Gao Feng The function do_proc_dointvec_jiffies_conv uses LONG_MX/HZ as the max value to avoid overflow. But actually the *valp is int type, so it still causes overflow. For example, echo 2147483647 > ./sys/net/ipv4/tcp_keepalive_time Then, cat ./sys/net/ipv4/tcp_keepalive_time The output i