Skip to content

Commit 9b53799

Browse files
yeyunfeng-devherbertx
authored andcommitted
crypto: arm64/aes-neonbs - add return value of skcipher_walk_done() in __xts_crypt()
A warning is found by the static code analysis tool: "Identical condition 'err', second condition is always false" Fix this by adding return value of skcipher_walk_done(). Fixes: 67cfa5d ("crypto: arm64/aes-neonbs - implement ciphertext stealing for XTS") Signed-off-by: Yunfeng Ye <[email protected]> Acked-by: Ard Biesheuvel <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 691505a commit 9b53799

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/crypto/aes-neonbs-glue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ static int __xts_crypt(struct skcipher_request *req, bool encrypt,
384384
goto xts_tail;
385385

386386
kernel_neon_end();
387-
skcipher_walk_done(&walk, nbytes);
387+
err = skcipher_walk_done(&walk, nbytes);
388388
}
389389

390390
if (err || likely(!tail))

0 commit comments

Comments
 (0)