bridge: fix br_multicast_query_expired() bug
commitf1394a1d369b927534929c08f209c0237a89420d
authorEric Dumazet <edumazet@google.com>
Thu, 28 May 2015 11:42:54 +0000 (28 04:42 -0700)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 15 Jun 2015 18:26:53 +0000 (15 14:26 -0400)
tree3f43c2beee27c24b114159f4532dc690f1c49e54
parenta36102b2bb069c858a4be3457ba288208b4662b0
bridge: fix br_multicast_query_expired() bug

[ Upstream commit 71d9f6149cac8fc6646adfb2a6f3b0de6ddd23f6 ]

br_multicast_query_expired() querier argument is a pointer to
a struct bridge_mcast_querier :

struct bridge_mcast_querier {
        struct br_ip addr;
        struct net_bridge_port __rcu    *port;
};

Intent of the code was to clear port field, not the pointer to querier.

Fixes: 2cd4143192e8 ("bridge: memorize and export selected IGMP/MLD querier port")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Thadeu Lima de Souza Cascardo <cascardo@redhat.com>
Acked-by: Linus Lüssing <linus.luessing@c0d3.blue>
Cc: Linus Lüssing <linus.luessing@web.de>
Cc: Steinar H. Gunderson <sesse@samfundet.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
net/bridge/br_multicast.c