1 From foo@baz Fri 31 May 2019 03:16:39 PM PDT
2 From: Eric Dumazet <edumazet@google.com>
3 Date: Wed, 22 May 2019 18:35:16 -0700
4 Subject: ipv4/igmp: fix build error if !CONFIG_IP_MULTICAST
6 From: Eric Dumazet <edumazet@google.com>
8 [ Upstream commit 903869bd10e6719b9df6718e785be7ec725df59f ]
10 ip_sf_list_clear_all() needs to be defined even if !CONFIG_IP_MULTICAST
12 Fixes: 3580d04aa674 ("ipv4/igmp: fix another memory leak in igmpv3_del_delrec()")
13 Signed-off-by: Eric Dumazet <edumazet@google.com>
14 Reported-by: kbuild test robot <lkp@intel.com>
15 Signed-off-by: David S. Miller <davem@davemloft.net>
16 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
18 net/ipv4/igmp.c | 22 +++++++++++-----------
19 1 file changed, 11 insertions(+), 11 deletions(-)
23 @@ -188,6 +188,17 @@ static void ip_ma_put(struct ip_mc_list
25 pmc = rtnl_dereference(pmc->next_rcu))
27 +static void ip_sf_list_clear_all(struct ip_sf_list *psf)
29 + struct ip_sf_list *next;
32 + next = psf->sf_next;
38 #ifdef CONFIG_IP_MULTICAST
41 @@ -633,17 +644,6 @@ static void igmpv3_clear_zeros(struct ip
45 -static void ip_sf_list_clear_all(struct ip_sf_list *psf)
47 - struct ip_sf_list *next;
50 - next = psf->sf_next;
56 static void kfree_pmc(struct ip_mc_list *pmc)
58 ip_sf_list_clear_all(pmc->sources);