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

Commit a449be04 authored by Michal Kubecek's avatar Michal Kubecek Committed by TALU
Browse files

xfrm: fix XFRMA_OUTPUT_MARK policy entry



This seems to be an obvious typo, NLA_U32 is type of the attribute, not its
(minimal) length.

Fixes: 077fbac405bf ("net: xfrm: support setting an output mark.")
Signed-off-by: default avatarMichal Kubecek <mkubecek@suse.cz>
Signed-off-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
parent 66effae9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2341,7 +2341,7 @@ static const struct nla_policy xfrma_policy[XFRMA_MAX+1] = {
	[XFRMA_TFCPAD]		= { .type = NLA_U32 },
	[XFRMA_REPLAY_ESN_VAL]	= { .len = sizeof(struct xfrm_replay_state_esn) },
	[XFRMA_SA_EXTRA_FLAGS]	= { .type = NLA_U32 },
	[XFRMA_OUTPUT_MARK]	= { .len = NLA_U32 },
	[XFRMA_OUTPUT_MARK]	= { .type = NLA_U32 },
};

static const struct xfrm_link {