mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-15 09:34:17 +00:00
xfrm: Pass const xfrm_mark to xfrm_mark_put().
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a70486f0e6
commit
e3dfa389fd
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user