Merge tag 'ovl-update-5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs
[linux-2.6-microblaze.git] / net / rds / rdma.c
index ccdd304..1d0afb1 100644 (file)
@@ -269,7 +269,7 @@ static int __rds_rdma_map(struct rds_sock *rs, struct rds_get_mr_args *args,
                goto out;
        } else {
                nents = ret;
-               sg = kcalloc(nents, sizeof(*sg), GFP_KERNEL);
+               sg = kmalloc_array(nents, sizeof(*sg), GFP_KERNEL);
                if (!sg) {
                        ret = -ENOMEM;
                        goto out;