提交 35e00fbe 编写于 作者: A Al Viro 提交者: Linus Torvalds

[PATCH] wrong order of kzalloc arguments

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 60261795
...@@ -296,7 +296,7 @@ static int bay_add(acpi_handle handle, int id) ...@@ -296,7 +296,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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册