ipv6: old_dport should be a __be16 in __ip6_datagram_connect()
authorStefano Brivio <sbrivio@redhat.com>
Mon, 19 Mar 2018 10:24:58 +0000 (11:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Mar 2018 16:10:39 +0000 (18:10 +0200)
commit5defa8c9269a4c5e7b284631e9a60abe1d57f20b
tree048ee0221bcdd535a87c465402d7977a883d6c9d
parenta8f02befc87d6f1a882c9b14a31bcfa1fbd3d430
ipv6: old_dport should be a __be16 in __ip6_datagram_connect()

[ Upstream commit 5f2fb802eee1df0810b47ea251942fe3fd36589a ]

Fixes: 2f987a76a977 ("net: ipv6: keep sk status consistent after datagram connect failure")
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Acked-by: Paolo Abeni <pabeni@redhat.com>
Acked-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/datagram.c