summaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2007-02-09 16:05:07 +0000
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-09 08:28:48 -0800
commit35e00fbe48c547002fbfef718fdc67471c403ee8 (patch)
tree9020ee47f7f6f19bfec7fc1f7056193baaa50bd1 /drivers/acpi
parent6026179519896e7d35b2564e7544487d1c8948e7 (diff)
downloadlinux-35e00fbe48c547002fbfef718fdc67471c403ee8.tar.gz
linux-35e00fbe48c547002fbfef718fdc67471c403ee8.tar.bz2
linux-35e00fbe48c547002fbfef718fdc67471c403ee8.zip
[PATCH] wrong order of kzalloc arguments
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/bay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/bay.c b/drivers/acpi/bay.c
index 667fa1dfa1a3..91082ce6f5d1 100644
--- a/drivers/acpi/bay.c
+++ b/drivers/acpi/bay.c
@@ -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;