]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm: Fix return value check of copy_sec_ctx.
authorSteffen Klassert <steffen.klassert@secunet.com>
Thu, 31 Aug 2017 08:37:00 +0000 (10:37 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Thu, 31 Aug 2017 08:37:00 +0000 (10:37 +0200)
commitf0bce565caa19eb94858947abd6eed981b785fa8
treec6b511f110886721df58d8c520fb813485caa24e
parentfd1518285aaf799b545cdf3d18af48e15ff4519a
xfrm: Fix return value check of copy_sec_ctx.

A recent commit added an output_mark. When copying
this output_mark, the return value of copy_sec_ctx
is overwitten without a check. Fix this by copying
the output_mark before the security context.

Fixes: a796fa1d3813 ("net: xfrm: support setting an output mark.")
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_user.c