Commit 35e00fbe authored by Al Viro's avatar Al Viro Committed by Linus Torvalds

[PATCH] wrong order of kzalloc arguments

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 60261795
......@@ -296,7 +296,7 @@ static int bay_add(acpi_handle handle, int id)
/*
* 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);
new_bay->handle = handle;
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