]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
netns xfrm: fixup xfrm_alloc_spi()
authorAlexey Dobriyan <adobriyan@gmail.com>
Wed, 26 Nov 2008 01:31:18 +0000 (17:31 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Nov 2008 01:31:18 +0000 (17:31 -0800)
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_state.c

index afde47498cdc6ad5b310f360a877acccd8d31883..cd51e4e3d0238c6546a1e84a4baf9b7f28e7ddfa 100644 (file)
@@ -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;