netpoll: fix netconsole IPv6 setup
authorSabrina Dubroca <sd@queasysnail.net>
Thu, 6 Feb 2014 17:34:12 +0000 (18:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Mar 2014 05:30:03 +0000 (21:30 -0800)
commit8ca9995116f49227a19da4cd3518c735ac609528
tree05852661df7cbc02ab8b2c3d32a2f3fc23a599d1
parent14bc205c25fa43583e4ad91f3400ab23db4e3d8a
netpoll: fix netconsole IPv6 setup

[ Upstream commit 00fe11b3c67dc670fe6391d22f1fe64e7c99a8ec ]

Currently, to make netconsole start over IPv6, the source address
needs to be specified. Without a source address, netpoll_parse_options
assumes we're setting up over IPv4 and the destination IPv6 address is
rejected.

Check if the IP version has been forced by a source address before
checking for a version mismatch when parsing the destination address.

Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Acked-by: Cong Wang <cwang@twopensource.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/core/netpoll.c