summaryrefslogtreecommitdiff
path: root/drivers/crypto/cavium/nitrox/nitrox_mbx.c
diff options
context:
space:
mode:
authorMaxime Ripard <mripard@kernel.org>2026-02-23 10:09:45 +0100
committerMaxime Ripard <mripard@kernel.org>2026-02-23 10:09:45 +0100
commitc17ee635fd3a482b2ad2bf5e269755c2eae5f25e (patch)
treee3f147462d8a9fd0cf2312c8cd3c5a94da15c3e4 /drivers/crypto/cavium/nitrox/nitrox_mbx.c
parent803ec1faf7c1823e6e3b1f2aaa81be18528c9436 (diff)
parent6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f (diff)
downloadlinux-next-c17ee635fd3a482b2ad2bf5e269755c2eae5f25e.tar.gz
linux-next-c17ee635fd3a482b2ad2bf5e269755c2eae5f25e.zip
Merge drm/drm-fixes into drm-misc-fixes
7.0-rc1 was just released, let's merge it to kick the new release cycle. Signed-off-by: Maxime Ripard <mripard@kernel.org>
Diffstat (limited to 'drivers/crypto/cavium/nitrox/nitrox_mbx.c')
-rw-r--r--drivers/crypto/cavium/nitrox/nitrox_mbx.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/crypto/cavium/nitrox/nitrox_mbx.c b/drivers/crypto/cavium/nitrox/nitrox_mbx.c
index a6a76e50ba84..944d8b882afa 100644
--- a/drivers/crypto/cavium/nitrox/nitrox_mbx.c
+++ b/drivers/crypto/cavium/nitrox/nitrox_mbx.c
@@ -139,7 +139,7 @@ void nitrox_pf2vf_mbox_handler(struct nitrox_device *ndev)
vfdev->ring = i;
/* fill the vf mailbox data */
vfdev->msg.value = pf2vf_read_mbox(ndev, vfdev->ring);
- pfwork = kzalloc(sizeof(*pfwork), GFP_ATOMIC);
+ pfwork = kzalloc_obj(*pfwork, GFP_ATOMIC);
if (!pfwork)
continue;
@@ -163,7 +163,7 @@ void nitrox_pf2vf_mbox_handler(struct nitrox_device *ndev)
/* fill the vf mailbox data */
vfdev->msg.value = pf2vf_read_mbox(ndev, vfdev->ring);
- pfwork = kzalloc(sizeof(*pfwork), GFP_ATOMIC);
+ pfwork = kzalloc_obj(*pfwork, GFP_ATOMIC);
if (!pfwork)
continue;
@@ -181,8 +181,7 @@ int nitrox_mbox_init(struct nitrox_device *ndev)
struct nitrox_vfdev *vfdev;
int i;
- ndev->iov.vfdev = kcalloc(ndev->iov.num_vfs,
- sizeof(struct nitrox_vfdev), GFP_KERNEL);
+ ndev->iov.vfdev = kzalloc_objs(struct nitrox_vfdev, ndev->iov.num_vfs);
if (!ndev->iov.vfdev)
return -ENOMEM;