diff options
author | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-22 21:46:56 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-22 21:46:56 -0500 |
commit | 18ed1c051317ac3a685120cead2adb192b802347 (patch) | |
tree | c08a9147119a6cb69114166c7107f6b0bba6e2ab /drivers/pci | |
parent | dab6df63086762629936e8b89a5984bae39724f6 (diff) | |
parent | 36bcbec7ce21e2e8b3143b11a05747330abeca70 (diff) |
Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6
* 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6: (68 commits)
ACPI: replace kmalloc+memset with kzalloc
ACPI: Add support for acpi_load_table/acpi_unload_table_id
fbdev: update after backlight argument change
ACPI: video: Add dev argument for backlight_device_register
ACPI: Implement acpi_video_get_next_level()
ACPI: Kconfig - depend on PM rather than selecting it
ACPI: fix NULL check in drivers/acpi/osl.c
ACPI: make drivers/acpi/ec.c:ec_ecdt static
ACPI: prevent processor module from loading on failures
ACPI: fix single linked list manipulation
ACPI: ibm_acpi: allow clean removal
ACPI: fix git automerge failure
ACPI: ibm_acpi: respond to workqueue update
ACPI: dock: add uevent to indicate change in device status
ACPI: ec: Lindent once again
ACPI: ec: Change #define to enums there possible.
ACPI: ec: Style changes.
ACPI: ec: Acquire Global Lock under EC mutex.
ACPI: ec: Drop udelay() from poll mode. Loop by reading status field instead.
ACPI: ec: Rename gpe_bit to gpe
...
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; |