Skip to content
Snippets Groups Projects
user avatar
Herbert Xu authored
As it is if user-space passes through a receive buffer that's not
aligned to to the cipher block size, we'll end up encrypting or
decrypting a partial block which causes a spurious EINVAL to be
returned.

This patch fixes this by moving the partial block test after the
af_alg_make_sg call.

Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
bc97e57e
History