]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - Documentation/networking/xfrm_device.txt
Merge tag 'kbuild-v4.21' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy...
[linux.git] / Documentation / networking / xfrm_device.txt
index 267f55b5f54a90c26e03a61e9545771bbe1231f4..a1c904dc70dcca72030de6f5b2031fc9db11450f 100644 (file)
@@ -111,9 +111,10 @@ the stack in xfrm_input().
                xfrm_state_hold(xs);
 
        store the state information into the skb
-               skb->sp = secpath_dup(skb->sp);
-               skb->sp->xvec[skb->sp->len++] = xs;
-               skb->sp->olen++;
+               sp = secpath_set(skb);
+               if (!sp) return;
+               sp->xvec[sp->len++] = xs;
+               sp->olen++;
 
        indicate the success and/or error status of the offload
                xo = xfrm_offload(skb);