xfrm: Fix replay window size calculation on initialization

On replay initialization, we compute the size of the replay
buffer to see if the replay window fits into the buffer.
This computation lacks a mutliplication by 8 because we need
the size in bit, not in byte. So we might return an error
even though the replay window would fit into the buffer.
This patch fixes this issue.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Steffen Klassert and committed by David S. Miller 3f602b08 0972ddb2

+1 -1
+1 -1
net/xfrm/xfrm_replay.c
··· 532 532 533 533 if (replay_esn) { 534 534 if (replay_esn->replay_window > 535 - replay_esn->bmp_len * sizeof(__u32)) 535 + replay_esn->bmp_len * sizeof(__u32) * 8) 536 536 return -EINVAL; 537 537 538 538 if ((x->props.flags & XFRM_STATE_ESN) && x->replay_esn)