netpoll: fix netconsole IPv6 setup
authorSabrina Dubroca <sd@queasysnail.net>
Thu, 6 Feb 2014 17:34:12 +0000 (18:34 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Feb 2014 05:28:06 +0000 (21:28 -0800)
commit00fe11b3c67dc670fe6391d22f1fe64e7c99a8ec
treeb2d8113facd8342e14ac70567b76c19fea0d5b8c
parent440b87eac4ca21ccb3f56e7b1f126e0eebcc0f84
netpoll: fix netconsole IPv6 setup

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>
net/core/netpoll.c