[PATCH 0/4] crypto: hisilicon - fix several issues in QM and SEC drivers

From: Chenghai Huang

Date: Fri Sep 11 2026 - 06:39:41 EST


This series fixes several issues in the Hisilicon QM and SEC drivers:

1.fix the devm_kcalloc() argument order in qm_pre_store_caps().
2.fix scheduling while atomic in the SEC AEAD soft fallback, which is
reachable with the backlog spinlock held.
3.fix a memory leak in hisi_qm_sort_devices() on the kzalloc() failure
path.
4.use GFP_KERNEL instead of GFP_ATOMIC in hisi_qm_memory_init(), which
runs in process context.

Wenkai Lin (4):
crypto: hisilicon/qm - fix devm_kcalloc argument order
crypto: hisilicon/sec2 - fix scheduling while atomic in aead soft
fallback
crypto: hisilicon/qm - fix memory leak in hisi_qm_sort_devices
crypto: hisilicon/qm - fix GFP flag inconsistency in
hisi_qm_memory_init

drivers/crypto/hisilicon/qm.c | 9 ++++++---
drivers/crypto/hisilicon/sec2/sec_crypto.c | 2 +-
2 files changed, 7 insertions(+), 4 deletions(-)

--
2.43.0