nouveau/gsp: free acpi object after use
authorDave Airlie <airlied@gmail.com>
Fri, 22 Dec 2023 04:31:53 +0000 (14:31 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 5 Jan 2024 02:27:53 +0000 (12:27 +1000)
This fixes a memory leak for the acpi dod object.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231222043308.3090089-5-airlied@gmail.com
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c

index 365dda6..1a6d7c8 100644 (file)
@@ -1226,6 +1226,7 @@ r535_gsp_acpi_dod(acpi_handle handle, DOD_METHOD_DATA *dod)
        }
 
        dod->status = 0;
+       kfree(output.pointer);
 }
 #endif