Skip to content

Commit 94a9c0c

Browse files
GoodLuck612gregkh
authored andcommitted
crypto: iaa - Fix incorrect return value in save_iaa_wq()
[ Upstream commit 76ce17f ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 42a2a70 commit 94a9c0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)