Commit a3c94e5c authored by Al Viro's avatar Al Viro Committed by Len Brown

ACPI: bay: fix wrong order of kzalloc arguments

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent b2b7910d
...@@ -276,7 +276,7 @@ static int bay_add(acpi_handle handle, int id) ...@@ -276,7 +276,7 @@ static int bay_add(acpi_handle handle, int id)
/* /*
* Initialize bay device structure * Initialize bay device structure
*/ */
new_bay = kzalloc(GFP_ATOMIC, sizeof(*new_bay)); new_bay = kzalloc(sizeof(*new_bay), GFP_ATOMIC);
INIT_LIST_HEAD(&new_bay->list); INIT_LIST_HEAD(&new_bay->list);
new_bay->handle = handle; new_bay->handle = handle;
new_bay->name = (char *)nbuffer.pointer; new_bay->name = (char *)nbuffer.pointer;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment