Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3458e21c authored by Thomas Gleixner's avatar Thomas Gleixner Committed by David S. Miller
Browse files

netfilter: Use proper rwlock init function



Replace the open coded initialization with the init function.

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Acked-by: default avatarHans Schillstrom <hans.schillstrom@ericsson.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1e5289e1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3679,7 +3679,7 @@ int __net_init ip_vs_control_net_init(struct net *net)
	int idx;
	struct netns_ipvs *ipvs = net_ipvs(net);

	ipvs->rs_lock = __RW_LOCK_UNLOCKED(ipvs->rs_lock);
	rwlock_init(&ipvs->rs_lock);

	/* Initialize rs_table */
	for (idx = 0; idx < IP_VS_RTAB_SIZE; idx++)