netpoll: fix netconsole IPv6 setup
authorSabrina Dubroca <sd@queasysnail.net>
Thu, 6 Feb 2014 17:34:12 +0000 (18:34 +0100)
committerJiri Slaby <jslaby@suse.cz>
Wed, 26 Feb 2014 09:22:51 +0000 (10:22 +0100)
commit7b694760856cc5059b550724d3030e53c7cfd2d2
treeda9aec64ee62ac075c6a4f3935562e12375ccca9
parent7d9c1b6b1e2730813b4d8692e5a51785fbd378db
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: Jiri Slaby <jslaby@suse.cz>
net/core/netpoll.c