From: Jamal Hadi Salim Date: Tue, 23 Feb 2010 23:09:53 +0000 (-0800) Subject: xfrm: clone mark when cloning policy X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fb977e2ca607a7e74946a1de798f474d1b80b9d6;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git xfrm: clone mark when cloning policy When we clone the SP, we should also clone the mark. Useful for socket based SPs. Signed-off-by: Jamal Hadi Salim Signed-off-by: David S. Miller --- diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c index 2a6e64652654..34a5ef8316e7 100644 --- a/net/xfrm/xfrm_policy.c +++ b/net/xfrm/xfrm_policy.c @@ -1154,6 +1154,7 @@ static struct xfrm_policy *clone_policy(struct xfrm_policy *old, int dir) } newp->lft = old->lft; newp->curlft = old->curlft; + newp->mark = old->mark; newp->action = old->action; newp->flags = old->flags; newp->xfrm_nr = old->xfrm_nr;