PCI / pci-label: release allocated ACPI object on error recovery path
authorJiang Liu <jiang.liu@linux.intel.com>
Thu, 19 Dec 2013 12:38:12 +0000 (20:38 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 5 Jan 2014 15:07:14 +0000 (16:07 +0100)
commit54e5bb46597e5eba63e460a1f96eb2021dc71fec
treefdd47cfce49f0a3fc4ed39623a28e133f4abc6f5
parenta65ac52041cccaf598995bc44340849027f1d79b
PCI / pci-label: release allocated ACPI object on error recovery path

Function dsm_get_label() leaks the returned ACPI object if
obj->package.count is not 2, so fix the possible memory leak.

Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/pci/pci-label.c