Skip to content

Commit 76ce17f

Browse files
GoodLuck612herbertx
authored andcommitted
crypto: iaa - Fix incorrect return value in save_iaa_wq()
The save_iaa_wq() function unconditionally returns 0, even when an error is encountered. This prevents the error code from being propagated to the caller. Fix this by returning the 'ret' variable, which holds the actual status of the operations within the function. Fixes: ea7a5cb ("crypto: iaa - Add Intel IAA Compression Accelerator crypto driver core") Signed-off-by: Zilin Guan <zilin@seu.edu.cn> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 2236fc0 commit 76ce17f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/crypto/intel/iaa/iaa_crypto_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ static int save_iaa_wq(struct idxd_wq *wq)
805805
if (!cpus_per_iaa)
806806
cpus_per_iaa = 1;
807807
out:
808-
return 0;
808+
return ret;
809809
}
810810

811811
static void remove_iaa_wq(struct idxd_wq *wq)

0 commit comments

Comments
 (0)