]> www.infradead.org Git - users/dwmw2/linux.git/commit
xfrm: Fix acquire state insertion.
authorSteffen Klassert <steffen.klassert@secunet.com>
Thu, 14 Nov 2024 11:06:56 +0000 (12:06 +0100)
committerSteffen Klassert <steffen.klassert@secunet.com>
Fri, 15 Nov 2024 06:25:14 +0000 (07:25 +0100)
commita35672819f8d85e2ae38b80d40b923e3ef81e4ea
tree9e68c50d6a72e158e5f7d7e7190a44db73831416
parent9e1a6db68e3ccc5c20fd2d6243285d1cc7215fe4
xfrm: Fix acquire state insertion.

A recent commit jumped over the dst hash computation and
left the symbol uninitialized. Fix this by explicitly
computing the dst hash before it is used.

Fixes: 0045e3d80613 ("xfrm: Cache used outbound xfrm states at the policy.")
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_state.c