Merge branch 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86, cpufeature: Unbreak compile with gcc 3.x x86, pat: Fix memory leak in free_memtype x86, k8: Fix section mismatch for powernowk8_exit() lib/atomic64_test: fix missing include of linux/kernel.h x86: remove last traces of quicklist usage x86, setup: Phoenix BIOS fixup is needed on Dell Inspiron Mini 1012 x86: "nosmp" command line option should force the system into UP mode arch/x86/pci: use kasprintf x86, apic: ack all pending irqs when crashed/on kexec
This commit is contained in:
@@ -207,10 +207,9 @@ get_current_resources(struct acpi_device *device, int busnum,
|
||||
if (!info.res)
|
||||
goto res_alloc_fail;
|
||||
|
||||
info.name = kmalloc(16, GFP_KERNEL);
|
||||
info.name = kasprintf(GFP_KERNEL, "PCI Bus %04x:%02x", domain, busnum);
|
||||
if (!info.name)
|
||||
goto name_alloc_fail;
|
||||
sprintf(info.name, "PCI Bus %04x:%02x", domain, busnum);
|
||||
|
||||
info.res_num = 0;
|
||||
acpi_walk_resources(device->handle, METHOD_NAME__CRS, setup_resource,
|
||||
|
Reference in New Issue
Block a user