[PATCH] wrong order of kzalloc arguments
[powerpc.git] / drivers / acpi / bay.c
index 667fa1d..91082ce 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;