ping: always initialize ->sin6_scope_id and ->sin6_flowinfo
authorCong Wang <amwang@redhat.com>
Sun, 2 Jun 2013 22:43:52 +0000 (22:43 +0000)
committerGabby Lee <galee@nvidia.com>
Fri, 10 Jan 2014 01:51:10 +0000 (17:51 -0800)
commit1ca3960a1549a9262b44f4322d80a3a808da1bbe
tree7561ddb2de34b02b4f29f82b701d7d43a14e1743
parent9d390ec2481ebbbf49ba69af07150bb6eb187f35
ping: always initialize ->sin6_scope_id and ->sin6_flowinfo

[net-next commit c26d6b46da3ee86fa8a864347331e5513ca84c2b]

If we don't need scope id, we should initialize it to zero.
Same for ->sin6_flowinfo.

Bug 1412141
Change-Id: I74764edf3d0567f5ae094b2e83484cdfe05f6098
Cc: Lorenzo Colitti <lorenzo@google.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <amwang@redhat.com>
Acked-by: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 14e41a18688ec8d52ea3163f7898455b52365854)
Reviewed-on: http://git-master/r/336270
(cherry picked from commit 68f4261657194f51c9d954f259825c76a72a00e2)
Reviewed-on: http://git-master/r/353231
Reviewed-by: Nitin Bindal <nbindal@nvidia.com>
Tested-by: Nitin Bindal <nbindal@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
net/ipv4/ping.c