Skip to contentSkip to conversation

xfrm: clone mark when cloning policy

PATCH Applied jamal 2 participants 2 messages Feb 23, 2010

Subsystems (3)
lore
Share & tools
lore

jamal

author
#0 lore raw

PATCH 1/1 xfrm: clone mark when cloning policy

From: Jamal Hadi Salim <[email protected]>

When we clone the SP, we should also clone the mark. Useful for socket based SPs.

---
 net/xfrm/xfrm_policy.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
net/xfrm/xfrm_policy.c +1 -0
index 2a6e646..34a5ef8 100644
@@ -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;
Signature · 1 line
1.6.0.4