X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=net%2Frds%2Frdma.c;h=1d0afb1dd77b5cfc78b46a88451b15c4f1a44069;hb=92dbc9dedccb9759c7f9f2f0ae6242396376988f;hp=ccdd304eae0a0a47ece2df8130c25500592d9124;hpb=4e3b9ce271b4b54d2293a3916d22e4ddc0c89aab;p=linux-2.6-microblaze.git diff --git a/net/rds/rdma.c b/net/rds/rdma.c index ccdd304eae0a..1d0afb1dd77b 100644 --- a/net/rds/rdma.c +++ b/net/rds/rdma.c @@ -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;