summaryrefslogtreecommitdiffstats
path: root/net/rds
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2011-05-28 10:36:35 -0700
committerJiri Kosina <jkosina@suse.cz>2011-09-15 13:59:25 +0200
commit3dbd4439837f2cfd2ff302897353f4b1b6263b2a (patch)
treee67bc84d5d4708fb8bc60a92709d89d3d811e46b /net/rds
parent8c1fec1ba83b7ce20b65a492a6e73e8d524aed88 (diff)
downloadop-kernel-dev-3dbd4439837f2cfd2ff302897353f4b1b6263b2a.zip
op-kernel-dev-3dbd4439837f2cfd2ff302897353f4b1b6263b2a.tar.gz
net: Convert vmalloc/memset to vzalloc
Signed-off-by: Joe Perches <joe@perches.com> Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'net/rds')
-rw-r--r--net/rds/ib_cm.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/net/rds/ib_cm.c b/net/rds/ib_cm.c
index cd67026..51c8689 100644
--- a/net/rds/ib_cm.c
+++ b/net/rds/ib_cm.c
@@ -375,23 +375,21 @@ static int rds_ib_setup_qp(struct rds_connection *conn)
goto out;
}
- ic->i_sends = vmalloc_node(ic->i_send_ring.w_nr * sizeof(struct rds_ib_send_work),
+ ic->i_sends = vzalloc_node(ic->i_send_ring.w_nr * sizeof(struct rds_ib_send_work),
ibdev_to_node(dev));
if (!ic->i_sends) {
ret = -ENOMEM;
rdsdebug("send allocation failed\n");
goto out;
}
- memset(ic->i_sends, 0, ic->i_send_ring.w_nr * sizeof(struct rds_ib_send_work));
- ic->i_recvs = vmalloc_node(ic->i_recv_ring.w_nr * sizeof(struct rds_ib_recv_work),
+ ic->i_recvs = vzalloc_node(ic->i_recv_ring.w_nr * sizeof(struct rds_ib_recv_work),
ibdev_to_node(dev));
if (!ic->i_recvs) {
ret = -ENOMEM;
rdsdebug("recv allocation failed\n");
goto out;
}
- memset(ic->i_recvs, 0, ic->i_recv_ring.w_nr * sizeof(struct rds_ib_recv_work));
rds_ib_recv_init_ack(ic);
OpenPOWER on IntegriCloud