From: David S. Miller <davem@davemloft.net>
Date: Fri, 6 May 2011 23:01:15 +0000 (-0700)
Subject: ipv4: Initialize cork->opt using NULL not 0.
X-Git-Tag: firefly_0821_release~7613^2~1367^2~156
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=706527280ec38fcdcd0466f10b607105fd23801b;p=firefly-linux-kernel-4.4.55.git

ipv4: Initialize cork->opt using NULL not 0.

Noticed by Joe Perches.

Signed-off-by: David S. Miller <davem@davemloft.net>
---

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);