mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
netfilter: Use proper rwlock init function
Replace the open coded initialization with the init function. Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: Hans Schillstrom <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
1e5289e121
commit
3458e21c0d
1 changed files with 1 additions and 1 deletions
|
|
@ -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++)
|
||||
|
|
|
|||
Loading…
Reference in a new issue