diff options
| author | Michal Kubecek <mkubecek@suse.cz> | 2017-11-29 12:23:56 -0500 |
|---|---|---|
| committer | Steffen Klassert <steffen.klassert@secunet.com> | 2017-12-01 00:50:30 -0500 |
| commit | e719135881f00c01ca400abb8a5dadaf297a24f9 (patch) | |
| tree | f3d9dc4b75db434db44f30056695ff46a04aeb15 | |
| parent | 6a53b7593233ab9e4f96873ebacc0f653a55c3e1 (diff) | |
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: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
| -rw-r--r-- | net/xfrm/xfrm_user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c index c2cfcc6fdb34..ff58c37469d6 100644 --- a/net/xfrm/xfrm_user.c +++ b/net/xfrm/xfrm_user.c | |||
| @@ -2485,7 +2485,7 @@ static const struct nla_policy xfrma_policy[XFRMA_MAX+1] = { | |||
| 2485 | [XFRMA_PROTO] = { .type = NLA_U8 }, | 2485 | [XFRMA_PROTO] = { .type = NLA_U8 }, |
| 2486 | [XFRMA_ADDRESS_FILTER] = { .len = sizeof(struct xfrm_address_filter) }, | 2486 | [XFRMA_ADDRESS_FILTER] = { .len = sizeof(struct xfrm_address_filter) }, |
| 2487 | [XFRMA_OFFLOAD_DEV] = { .len = sizeof(struct xfrm_user_offload) }, | 2487 | [XFRMA_OFFLOAD_DEV] = { .len = sizeof(struct xfrm_user_offload) }, |
| 2488 | [XFRMA_OUTPUT_MARK] = { .len = NLA_U32 }, | 2488 | [XFRMA_OUTPUT_MARK] = { .type = NLA_U32 }, |
| 2489 | }; | 2489 | }; |
| 2490 | 2490 | ||
| 2491 | static const struct nla_policy xfrma_spd_policy[XFRMA_SPD_MAX+1] = { | 2491 | static const struct nla_policy xfrma_spd_policy[XFRMA_SPD_MAX+1] = { |
