Re: [PATCH 135/140] ACPI: bay: make bay a platform driver

Bjorn Helgaas
2007-04-13T17:26:11Z

On Wednesday 07 February 2007 11:52, Len Brown wrote:
> - new_bay = kmalloc(GFP_ATOMIC, sizeof(*new_bay));
> + new_bay = kzalloc(GFP_ATOMIC, sizeof(*new_bay));
> INIT_LIST_HEAD(&new_bay->list);

You might want to check for kzalloc failure.