summaryrefslogtreecommitdiff
path: root/include/acpi
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-06-30 21:50:24 (GMT)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-07-14 23:33:11 (GMT)
commita30c4c5ee85680bb66ed8a6c0b0bf4921125c378 (patch)
tree42b772b0ac0c0e5100bd34da0d5fea2a3854232f /include/acpi
parentf716fc2ac037c45a6c641eb9f20ec602e8d04e14 (diff)
downloadlinux-fsl-qoriq-a30c4c5ee85680bb66ed8a6c0b0bf4921125c378.tar.xz
ACPI / dock: Do not leak memory on falilures to add a dock station
The function creating and registering dock station objects, dock_add(), leaks memory if there's an error after it's walked the ACPI namespace calling find_dock_devices(), because it doesn't free the list of dependent devices it's just created in those cases. Fix that issue by adding the missing code to free the list of dependent devices on errors. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/acpi')
0 files changed, 0 insertions, 0 deletions