summaryrefslogtreecommitdiffstats
path: root/net/ipv4/ip_output.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-05-07 01:01:15 +0200
committerDavid S. Miller <davem@davemloft.net>2011-05-07 01:01:15 +0200
commit706527280ec38fcdcd0466f10b607105fd23801b (patch)
tree96b1b0c20d214d87fd9d93b9b4c3d8645183705a /net/ipv4/ip_output.c
parentipv4: Initialize on-stack cork more efficiently. (diff)
downloadlinux-706527280ec38fcdcd0466f10b607105fd23801b.tar.xz
linux-706527280ec38fcdcd0466f10b607105fd23801b.zip
ipv4: Initialize cork->opt using NULL not 0.
Noticed by Joe Perches. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ip_output.c')
-rw-r--r--net/ipv4/ip_output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c
index 5f5fe4f742b9..0a2f49a442e8 100644
--- a/net/ipv4/ip_output.c
+++ b/net/ipv4/ip_output.c
@@ -1419,7 +1419,7 @@ struct sk_buff *ip_make_skb(struct sock *sk,
cork.flags = 0;
cork.addr = 0;
- cork.opt = 0;
+ cork.opt = NULL;
err = ip_setup_cork(sk, &cork, ipc, rtp);
if (err)
return ERR_PTR(err);