]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: iaa - Fix incorrect return value in save_iaa_wq()
authorZilin Guan <zilin@seu.edu.cn>
Sun, 9 Nov 2025 14:56:48 +0000 (14:56 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:03:00 +0000 (14:03 +0100)
commit94a9c0c42cce51a53af36585328b44fb72a34f2d
treed8e657397e6f7560e5d204052ec40eecc721e952
parent42a2a70a12e42d96d6cd8778705208bd77e4994e
crypto: iaa - Fix incorrect return value in save_iaa_wq()

[ Upstream commit 76ce17f6f7f78ab79b9741388bdb4dafa985b4e9 ]

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: ea7a5cbb43696 ("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>
drivers/crypto/intel/iaa/iaa_crypto_main.c