bridge: fix br_multicast_query_expired() bug
authorEric Dumazet <[email protected]>
Thu, 28 May 2015 11:42:54 +0000 (04:42 -0700)
committerDavid S. Miller <[email protected]>
Sun, 31 May 2015 06:31:28 +0000 (23:31 -0700)
commit71d9f6149cac8fc6646adfb2a6f3b0de6ddd23f6
treeb2cb34293f904f1346b38770ab223195d466ea2c
parent5aab0e8a45e2c15930af9aea7f461bf57ad8efe3
bridge: fix br_multicast_query_expired() bug

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 <[email protected]>
Acked-by: Thadeu Lima de Souza Cascardo <[email protected]>
Acked-by: Linus Lüssing <[email protected]>
Cc: Linus Lüssing <[email protected]>
Cc: Steinar H. Gunderson <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/bridge/br_multicast.c