projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd4544f
)
ipv4: Use FIELD_SIZEOF() in inet_init().
author
YOSHIFUJI Hideaki / 吉藤英明
<yoshfuji@linux-ipv6.org>
Wed, 9 Jan 2013 07:19:37 +0000
(07:19 +0000)
committer
David S. Miller
<davem@davemloft.net>
Thu, 10 Jan 2013 07:38:23 +0000
(23:38 -0800)
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/af_inet.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv4/af_inet.c
b/net/ipv4/af_inet.c
index 24b384b7903ea7a59a11e7a4cbf06db996498924..4fdf96710d45b16008653c7694ce0e5cae6bde03 100644
(file)
--- a/
net/ipv4/af_inet.c
+++ b/
net/ipv4/af_inet.c
@@
-1705,12
+1705,11
@@
static struct packet_type ip_packet_type __read_mostly = {
static int __init inet_init(void)
{
- struct sk_buff *dummy_skb;
struct inet_protosw *q;
struct list_head *r;
int rc = -EINVAL;
- BUILD_BUG_ON(sizeof(struct inet_skb_parm) >
sizeof(dummy_skb->
cb));
+ BUILD_BUG_ON(sizeof(struct inet_skb_parm) >
FIELD_SIZEOF(struct sk_buff,
cb));
sysctl_local_reserved_ports = kzalloc(65536 / 8, GFP_KERNEL);
if (!sysctl_local_reserved_ports)