Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e3dfa389 authored by David S. Miller's avatar David S. Miller
Browse files

xfrm: Pass const xfrm_mark to xfrm_mark_put().

parent a70486f0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1611,7 +1611,7 @@ static inline int xfrm_mark_get(struct nlattr **attrs, struct xfrm_mark *m)
	return m->v & m->m;
}

static inline int xfrm_mark_put(struct sk_buff *skb, struct xfrm_mark *m)
static inline int xfrm_mark_put(struct sk_buff *skb, const struct xfrm_mark *m)
{
	if (m->m | m->v)
		NLA_PUT(skb, XFRMA_MARK, sizeof(struct xfrm_mark), m);