ACPI: bay: fix wrong order of kzalloc arguments
authorAl Viro <viro@ftp.linux.org.uk>
Fri, 9 Feb 2007 16:05:07 +0000 (16:05 +0000)
committerLen Brown <len.brown@intel.com>
Fri, 9 Feb 2007 18:04:58 +0000 (13:04 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/bay.c

index 9fdee610ae05351c7da4ed1bc37bb96b956d6608..73dc10db4a8880833dbbf3f488a37db2c359e7c8 100644 (file)
@@ -276,7 +276,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;