Skip to content

Commit

Permalink
Merge branch 'acpi-fixes'
Browse files Browse the repository at this point in the history
* acpi-fixes:
  ACPI / scan: Fix memory leak on acpi_scan_init_hotplug() error path
  • Loading branch information
Rafael J. Wysocki committed May 16, 2013
2 parents e50caa9 + 7a26b53 commit 49a9e43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/acpi/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -1785,7 +1785,7 @@ static void acpi_scan_init_hotplug(acpi_handle handle, int type)
acpi_set_pnp_ids(handle, &pnp, type);

if (!pnp.type.hardware_id)
return;
goto out;

/*
* This relies on the fact that acpi_install_notify_handler() will not
Expand All @@ -1800,6 +1800,7 @@ static void acpi_scan_init_hotplug(acpi_handle handle, int type)
}
}

out:
acpi_free_pnp_ids(&pnp);
}

Expand Down

0 comments on commit 49a9e43

Please sign in to comment.