>> + sn_irq_info = kmalloc(sn_irq_size, GFP_KERNEL);
>> + if (sn_irq_info == NULL)
>> +  return NULL;
>> +
>> + memset(sn_irq_info, 0x0, sn_irq_size);
>
>You can use kmalloc(sn_irq_size, GFP_KERNEL | __GFP_ZERO); to 
>avoid having to 
>memset it to 0.

Umm, no.  kmalloc() doesn't handle __GFP_ZERO.  There is a
kcalloc() that returns zeroed memory from the slab.

-Tony
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to