net: fix __ip_mc_inc_group usage
authorLi RongQing <lirongqing@baidu.com>
Tue, 20 Aug 2019 05:52:47 +0000 (13:52 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Aug 2019 19:48:06 +0000 (12:48 -0700)
commita1c4cd67840ef80f6ca5f73326fa9a6719303a95
tree0a2fe4249639b2fb2872e7b2141f293ae84ddddc
parent96a1b033ac24ccc58156f05c183b2cba0b9412d5
net: fix __ip_mc_inc_group usage

in ip_mc_inc_group, memory allocation flag, not mcast mode, is expected
by __ip_mc_inc_group

similar issue in __ip_mc_join_group, both mcase mode and gfp_t are needed
here, so use ____ip_mc_inc_group(...)

Fixes: 9fb20801dab4 ("net: Fix ip_mc_{dec,inc}_group allocation context")
Signed-off-by: Li RongQing <lirongqing@baidu.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Zhang Yu <zhangyu31@baidu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/igmp.c