[PATCH] wrong order of kzalloc arguments
authorAl Viro <viro@ftp.linux.org.uk>
Fri, 9 Feb 2007 16:05:07 +0000 (16:05 +0000)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 9 Feb 2007 16:28:48 +0000 (08:28 -0800)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/acpi/bay.c

index 667fa1dfa1a361188607e82ce919b6528f270781..91082ce6f5d1de0e158704401c45d46590336afa 100644 (file)
@@ -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;