Re: [PATCH] xhci: Fix memory leak in xhci_pme_acpi_rtd3_enable()

2015-11-30 Thread Mathias Nyman
On 27.11.2015 15:24, Mika Westerberg wrote: There is a memory leak because acpi_evaluate_dsm() actually returns an object which the caller is supposed to release. Fix this by calling ACPI_FREE() for the returned object (this expands to kfree() so passing NULL there is fine as well). While there

[PATCH] xhci: Fix memory leak in xhci_pme_acpi_rtd3_enable()

2015-11-27 Thread Mika Westerberg
There is a memory leak because acpi_evaluate_dsm() actually returns an object which the caller is supposed to release. Fix this by calling ACPI_FREE() for the returned object (this expands to kfree() so passing NULL there is fine as well). While there correct indentation in !CONFIG_ACPI case.