diff options
Diffstat (limited to 'net/xfrm')
-rw-r--r-- | net/xfrm/xfrm_state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c index afde47498cdc..cd51e4e3d023 100644 --- a/net/xfrm/xfrm_state.c +++ b/net/xfrm/xfrm_state.c | |||
@@ -1527,8 +1527,8 @@ int xfrm_alloc_spi(struct xfrm_state *x, u32 low, u32 high) | |||
1527 | } | 1527 | } |
1528 | if (x->id.spi) { | 1528 | if (x->id.spi) { |
1529 | spin_lock_bh(&xfrm_state_lock); | 1529 | spin_lock_bh(&xfrm_state_lock); |
1530 | h = xfrm_spi_hash(&init_net, &x->id.daddr, x->id.spi, x->id.proto, x->props.family); | 1530 | h = xfrm_spi_hash(net, &x->id.daddr, x->id.spi, x->id.proto, x->props.family); |
1531 | hlist_add_head(&x->byspi, init_net.xfrm.state_byspi+h); | 1531 | hlist_add_head(&x->byspi, net->xfrm.state_byspi+h); |
1532 | spin_unlock_bh(&xfrm_state_lock); | 1532 | spin_unlock_bh(&xfrm_state_lock); |
1533 | 1533 | ||
1534 | err = 0; | 1534 | err = 0; |