ACPI: fix bus scanning memory leaks
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Fri, 2 Oct 2009 15:03:12 +0000 (11:03 -0400)
committerLen Brown <len.brown@intel.com>
Fri, 2 Oct 2009 15:03:12 +0000 (11:03 -0400)
commita83893ae903ba908b1139fd8455ac93c4e5a2dff
tree42974d50bc901c28972eb3263e1c6e226f2c8b1c
parent0efe5e32c8729ef44b00d9a7203e4c99a6378b27
ACPI: fix bus scanning memory leaks

Free an acpi_get_object_info() buffer when we're finished.  Skip the
acpi_get_name() altogether -- it was only used for a printk that was
really just for debug anyway.

http://bugzilla.kernel.org/show_bug.cgi?id=14271

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Reported-and-tested-by: Zdenek Kabelac <zdenek.kabelac@gmail.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/scan.c