Re: [PATCH] drm/i915: Free the returned object of acpi_evaluate_dsm()

2021-10-07 Thread Ville Syrjälä
On Mon, Sep 06, 2021 at 11:35:41AM +0800, Zenghui Yu wrote: > As per the comment on top of acpi_evaluate_dsm(): > > | * Evaluate device's _DSM method with specified GUID, revision id and > | * function number. Caller needs to free the returned object. > > We should free the returned object of

Re: [PATCH] drm/i915: Free the returned object of acpi_evaluate_dsm()

2021-10-07 Thread Zenghui Yu
[+linux-acpi] ping On 2021/9/6 11:35, Zenghui Yu wrote: As per the comment on top of acpi_evaluate_dsm(): | * Evaluate device's _DSM method with specified GUID, revision id and | * function number. Caller needs to free the returned object. We should free the returned object of

[PATCH] drm/i915: Free the returned object of acpi_evaluate_dsm()

2021-09-05 Thread Zenghui Yu
As per the comment on top of acpi_evaluate_dsm(): | * Evaluate device's _DSM method with specified GUID, revision id and | * function number. Caller needs to free the returned object. We should free the returned object of acpi_evaluate_dsm() to avoid memory leakage. Otherwise the kmemleak splat