>  > +  rblock = kmalloc(PAGE_SIZE, GFP_KERNEL);
>  > +  if (rblock == NULL) {
>  > +          EDEB_ERR(4, "Cannot allocate rblock memory.");
>  > +          ret = -ENOMEM;
>  > +          goto num_ports0;
>  > +  }
>  > +
>  > +  memset(rblock, 0, PAGE_SIZE);
> 
> Use kzalloc instead (this appears a quite a few places).

for a page-sized allocation __get_zeroed_page sounds better anyway.
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to