diff options
author | Burman Yan <yan_952@hotmail.com> | 2006-12-19 15:56:11 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-12-20 16:54:54 -0500 |
commit | 36bcbec7ce21e2e8b3143b11a05747330abeca70 (patch) | |
tree | d9ace4d83a5013dbb3cd599e7bc4358ce4cdb980 /drivers/pci | |
parent | 5b7b4119553dd7cc0bc200c0d1b1598e158eec9a (diff) |
ACPI: replace kmalloc+memset with kzalloc
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/hotplug/acpiphp_ibm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pci/hotplug/acpiphp_ibm.c b/drivers/pci/hotplug/acpiphp_ibm.c index bd40aee10e16..7f03881a8b68 100644 --- a/drivers/pci/hotplug/acpiphp_ibm.c +++ b/drivers/pci/hotplug/acpiphp_ibm.c | |||
@@ -319,13 +319,12 @@ static int ibm_get_table_from_acpi(char **bufp) | |||
319 | if (bufp == NULL) | 319 | if (bufp == NULL) |
320 | goto read_table_done; | 320 | goto read_table_done; |
321 | 321 | ||
322 | lbuf = kmalloc(size, GFP_KERNEL); | 322 | lbuf = kzalloc(size, GFP_KERNEL); |
323 | dbg("%s: element count: %i, ASL table size: %i, &table = 0x%p\n", | 323 | dbg("%s: element count: %i, ASL table size: %i, &table = 0x%p\n", |
324 | __FUNCTION__, package->package.count, size, lbuf); | 324 | __FUNCTION__, package->package.count, size, lbuf); |
325 | 325 | ||
326 | if (lbuf) { | 326 | if (lbuf) { |
327 | *bufp = lbuf; | 327 | *bufp = lbuf; |
328 | memset(lbuf, 0, size); | ||
329 | } else { | 328 | } else { |
330 | size = -ENOMEM; | 329 | size = -ENOMEM; |
331 | goto read_table_done; | 330 | goto read_table_done; |