]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: fix wildcard search with inet_confirm_addr()
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Tue, 10 Dec 2013 14:02:40 +0000 (15:02 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Dec 2013 19:47:40 +0000 (14:47 -0500)
commit80ee60fb98d190b447a336038e287b26ddde7729
tree5a4fe90c1aa07be39a0720e2149b0cf7d95262bd
parent676ec527444fec579404bc5e0a3eb7b0fbb52d6a
ipv4: fix wildcard search with inet_confirm_addr()

Help of this function says: "in_dev: only on this interface, 0=any interface",
but since commit 988cdafb53d6 ("[NETNS]: Process inet_confirm_addr in the
correct namespace."), the code supposes that it will never be NULL. This
function is never called with in_dev == NULL, but it's exported and may be used
by an external module.

Because this patch restore the ability to call inet_confirm_addr() with in_dev
== NULL, I partially revert the above commit, as suggested by Julian.

CC: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Reviewed-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bonding.h
include/linux/inetdevice.h
net/ipv4/arp.c
net/ipv4/devinet.c