mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 11:36:40 +07:00
ACPI: bay: fix wrong order of kzalloc arguments
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
b2b7910d5d
commit
a3c94e5c59
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user