Centos-kernel-stream-9/drivers/s390/crypto
Thomas Huth 655328f688 s390/zcrypt: Use kvcalloc() instead of kvmalloc_array()
JIRA: https://issues.redhat.com/browse/RHEL-86670

commit c1248638f8c35b74400efa7e02e78ecda23373f9
Author: Heiko Carstens <hca@linux.ibm.com>
Date:   Thu May 16 13:56:23 2024 +0200

    s390/zcrypt: Use kvcalloc() instead of kvmalloc_array()

    sparse warns about a large memset() call within
    zcrypt_device_status_mask_ext():

    drivers/s390/crypto/zcrypt_api.c:1303:15: warning: memset with byte count of 262144

    Get rid of this warning by making sure that all callers of this function
    allocate memory with __GFP_ZERO, which zeroes memory already at allocation
    time, which again allows to remove the memset() call.

    Reviewed-by: Harald Freudenberger <freude@linux.ibm.com>
    Signed-off-by: Heiko Carstens <hca@linux.ibm.com>

Signed-off-by: Thomas Huth <thuth@redhat.com>
2025-05-12 13:03:12 +02:00
..
Makefile s390/ap: modularize ap bus 2025-05-12 13:03:07 +02:00
ap_bus.c s390/ap: Fix bind complete udev event sent after each AP bus scan 2025-05-12 13:03:12 +02:00
ap_bus.h s390/ap: Externalize AP bus specific bitmap reading function 2025-05-12 13:03:09 +02:00
ap_card.c s390/ap: store TAPQ hwinfo in struct ap_card 2024-05-31 09:17:06 +00:00
ap_debug.h s390/zcrypt: introduce dynamic debugging for AP and zcrypt code 2024-05-31 09:17:08 +00:00
ap_queue.c s390/ap: rename ap debug configuration option 2025-05-12 13:03:07 +02:00
pkey_api.c s390/pkey: Add function to enforce pkey handler modules load 2024-12-02 11:31:41 +01:00
pkey_base.c s390/pkey: Add new pkey handler module pkey-uv 2025-01-24 11:17:24 +01:00
pkey_base.h s390/pkey: Simplify protected key length calculation code 2025-01-24 11:16:58 +01:00
pkey_cca.c s390/pkey: Tolerate larger key blobs 2025-01-24 11:17:32 +01:00
pkey_ep11.c s390/zcrypt: Cleanup include zcrypt_api.h 2025-01-24 11:16:50 +01:00
pkey_pckmo.c s390/pkey: Tolerate larger key blobs 2025-01-24 11:17:32 +01:00
pkey_sysfs.c s390/zcrypt: Cleanup include zcrypt_api.h 2025-01-24 11:16:50 +01:00
pkey_uv.c s390/pkey: Add new pkey handler module pkey-uv 2025-01-24 11:17:24 +01:00
vfio_ap_debug.h
vfio_ap_drv.c s390/vfio-ap: Driver feature advertisement 2025-05-12 13:03:09 +02:00
vfio_ap_ops.c s390/vfio-ap: Add write support to sysfs attr ap_config 2025-05-12 13:03:09 +02:00
vfio_ap_private.h s390/vfio-ap: Add write support to sysfs attr ap_config 2025-05-12 13:03:09 +02:00
zcrypt_api.c s390/zcrypt: Use kvcalloc() instead of kvmalloc_array() 2025-05-12 13:03:12 +02:00
zcrypt_api.h s390/zcrypt: improve zcrypt retry behavior 2024-05-31 09:17:12 +00:00
zcrypt_card.c s390/zcrypt: don't report online if card or queue is in check-stop state 2024-05-31 09:17:05 +00:00
zcrypt_cca_key.h
zcrypt_ccamisc.c s390/zcrypt: Use kvcalloc() instead of kvmalloc_array() 2025-05-12 13:03:12 +02:00
zcrypt_ccamisc.h s390/zcrypt: Cleanup include zcrypt_api.h 2025-01-24 11:16:50 +01:00
zcrypt_cex2a.c s390/zcrypt: remove CEX2 and CEX3 device drivers 2024-05-31 09:17:04 +00:00
zcrypt_cex2a.h s390/zcrypt: remove CEX2 and CEX3 device drivers 2024-05-31 09:17:04 +00:00
zcrypt_cex2c.c s390/zcrypt: remove CEX2 and CEX3 device drivers 2024-05-31 09:17:04 +00:00
zcrypt_cex2c.h s390/zcrypt: remove CEX2 and CEX3 device drivers 2024-05-31 09:17:04 +00:00
zcrypt_cex4.c s390/ap: store TAPQ hwinfo in struct ap_card 2024-05-31 09:17:06 +00:00
zcrypt_cex4.h
zcrypt_debug.h s390/zcrypt: introduce dynamic debugging for AP and zcrypt code 2024-05-31 09:17:08 +00:00
zcrypt_ep11misc.c s390/zcrypt: Use kvcalloc() instead of kvmalloc_array() 2025-05-12 13:03:12 +02:00
zcrypt_ep11misc.h s390/pkey: Rework and split PKEY kernel module code 2024-11-27 14:53:00 +01:00
zcrypt_error.h s390/zcrypt: improve zcrypt retry behavior 2024-05-31 09:17:12 +00:00
zcrypt_msgtype6.c s390/zcrypt: remove unnecessary (void *) conversions 2024-09-06 17:33:26 +02:00
zcrypt_msgtype6.h
zcrypt_msgtype50.c s390/zcrypt: introduce dynamic debugging for AP and zcrypt code 2024-05-31 09:17:08 +00:00
zcrypt_msgtype50.h s390/zcrypt: remove CEX2 and CEX3 device drivers 2024-05-31 09:17:04 +00:00
zcrypt_queue.c s390/zcrypt: don't report online if card or queue is in check-stop state 2024-05-31 09:17:05 +00:00