[openib-general] [PATCH 02/17] ehca: module infrastructure
Christoph Hellwig
hch at lst.de
Fri Mar 3 02:35:20 PST 2006
> > + 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.
More information about the general
mailing list