OSDN Git Service

wireguard: allowedips: use kfree_rcu() instead of call_rcu()
authorWei Yongjun <weiyongjun1@huawei.com>
Sun, 15 Dec 2019 21:08:04 +0000 (22:08 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Dec 2019 03:22:22 +0000 (19:22 -0800)
commitd89ee7d5c73af15c1c6f12b016cdf469742b5726
tree3aac280c9396bf35e2d579f4651e23b8ea7efae5
parent43967b6ff91e53bcce5ae08c16a0588a475b53a1
wireguard: allowedips: use kfree_rcu() instead of call_rcu()

The callback function of call_rcu() just calls a kfree(), so we
can use kfree_rcu() instead of call_rcu() + callback function.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wireguard/allowedips.c