]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: Wrong type passed to %pIS
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Sat, 7 Feb 2015 02:17:31 +0000 (03:17 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Feb 2015 01:14:40 +0000 (17:14 -0800)
commit00c078a442c6145ee5775347ea237010cb623872
tree6257a74245b5f33df1ff4112463e7fa652aea969
parenteeaddb653a9a8c47908ca151893ee798fef92282
vxlan: Wrong type passed to %pIS

src_ip is a pointer to a union vxlan_addr, one member of which is a
struct sockaddr. Passing a pointer to src_ip is wrong; one should pass
the value of src_ip itself. Since %pIS formally expects something of
type struct sockaddr*, let's pass a pointer to the appropriate union
member, though this of course doesn't change the generated code.

Fixes: d2177b1af817 ("vxlan: add ipv6 support")
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Acked-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c