aboutsummaryrefslogtreecommitdiff
path: root/arch/.gitignore
diff options
context:
space:
mode:
authorShreyansh Chouhan2021-09-11 16:37:59 +0530
committerHerbert Xu2021-09-17 11:06:15 +0800
commita2d3cbc80d2527b435154ff0f89b56ef4b84370f (patch)
tree0bad0935ac3ed59e1e3a360dfee09f167d81d4d7 /arch/.gitignore
parent81f53028dfbc79844f727a7c13d337ba827a471c (diff)
crypto: aesni - check walk.nbytes instead of err
In the code for xts_crypt(), we check for the err value returned by skcipher_walk_virt() and return from the function if it is non zero. However, skcipher_walk_virt() can set walk.nbytes to 0, which would cause us to call kernel_fpu_begin(), and then skip the kernel_fpu_end() call. This patch checks for the walk.nbytes value instead, and returns if walk.nbytes is 0. This prevents us from calling kernel_fpu_begin() in the first place and also covers the case of having a non zero err value returned from skcipher_walk_virt(). Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Shreyansh Chouhan <chouhan.shreyansh630@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/.gitignore')
0 files changed, 0 insertions, 0 deletions