linux/drivers/crypto/intel
Giovanni Cabiddu a434ce6643 crypto: qat - fix seq_file position update in adf_ring_next()
[ Upstream commit 6908c5f4f0 ]

The `adf_ring_next()` function in the QAT debug transport interface
fails to correctly update the position index when reaching the end of
the ring elements. This triggers the following kernel warning when
reading ring files, such as
/sys/kernel/debug/qat_c6xx_<D:B:D:F>/transport/bank_00/ring_00:

   [27725.022965] seq_file: buggy .next function adf_ring_next [intel_qat] did not update position index

Ensure that the `*pos` index is incremented before returning NULL when
after the last element in the ring is found, satisfying the seq_file API
requirements and preventing the warning.

Fixes: a672a9dc87 ("crypto: qat - Intel(R) QAT transport code")
Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: Ahsan Atta <ahsan.atta@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-08-15 12:13:57 +02:00
..
iaa crypto: iaa - Do not clobber req->base.data 2025-07-10 16:04:54 +02:00
ixp4xx crypto: ixp4xx - fix OF node reference leaks in init_ixp_crypto() 2025-02-08 09:57:30 +01:00
keembay crypto: keembay - Fix dma_unmap_sg() nents value 2025-08-15 12:13:55 +02:00
qat crypto: qat - fix seq_file position update in adf_ring_next() 2025-08-15 12:13:57 +02:00
Kconfig crypto: iaa - Add Intel IAA Compression Accelerator crypto driver core 2023-12-15 17:52:53 +08:00
Makefile crypto: iaa - Add Intel IAA Compression Accelerator crypto driver core 2023-12-15 17:52:53 +08:00