Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[PATCH] wrong order of kzalloc arguments

parent 60261795
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;