diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2008-11-26 02:31:18 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-26 02:31:18 +0100 |
commit | 12604d8aaa38ac4e24299c9803fefdb301a16421 (patch) | |
tree | 3b790cd03b7e978d32d6223430ef3af80d09f21a /net/xfrm/xfrm_state.c | |
parent | netns xfrm: state lookup in netns (diff) | |
download | linux-12604d8aaa38ac4e24299c9803fefdb301a16421.tar.xz linux-12604d8aaa38ac4e24299c9803fefdb301a16421.zip |
netns xfrm: fixup xfrm_alloc_spi()
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/xfrm/xfrm_state.c')
-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) } if (x->id.spi) { spin_lock_bh(&xfrm_state_lock); - h = xfrm_spi_hash(&init_net, &x->id.daddr, x->id.spi, x->id.proto, x->props.family); - hlist_add_head(&x->byspi, init_net.xfrm.state_byspi+h); + h = xfrm_spi_hash(net, &x->id.daddr, x->id.spi, x->id.proto, x->props.family); + hlist_add_head(&x->byspi, net->xfrm.state_byspi+h); spin_unlock_bh(&xfrm_state_lock); err = 0; |