> @@ -795,11 +799,12 @@ static void mcast_add_one(struct ib_device *device)
 >      struct mcast_device *dev;
 >      struct mcast_port *port;
 >      int i;
 > +    int count = 0;
 >  
 >      if (rdma_node_get_transport(device->node_type) != RDMA_TRANSPORT_IB)
 >              return;
 >  
 > -    dev = kmalloc(sizeof *dev + device->phys_port_cnt * sizeof *port,
 > +    dev = kzalloc(sizeof *dev + device->phys_port_cnt * sizeof *port,

 > @@ -1007,7 +1010,7 @@ static void ib_sa_add_one(struct ib_device *device)
 >              e = device->phys_port_cnt;
 >      }
 >  
 > -    sa_dev = kmalloc(sizeof *sa_dev +
 > +    sa_dev = kzalloc(sizeof *sa_dev +

Do you happen to remember why you needed these kmalloc -> kzalloc conversions?
-- 
Roland Dreier <rola...@cisco.com> || For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/index.html
_______________________________________________
ewg mailing list
ewg@lists.openfabrics.org
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ewg

Reply via email to