diff mbox

[net-next-2.6,1/1] xfrm: clone mark when cloning policy

Message ID 1266966484-1750-1-git-send-email-hadi@cyberus.ca
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

jamal Feb. 23, 2010, 11:08 p.m. UTC
From: Jamal Hadi Salim <hadi@cyberus.ca>

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

Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
---
 net/xfrm/xfrm_policy.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Comments

David Miller Feb. 23, 2010, 11:10 p.m. UTC | #1
From: jamal <hadi@cyberus.ca>
Date: Tue, 23 Feb 2010 18:08:04 -0500

> From: Jamal Hadi Salim <hadi@cyberus.ca>
> 
> When we clone the SP, we should also clone the mark.
> Useful for socket based SPs.
> 
> Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c
index 2a6e646..34a5ef8 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;