summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorDave Airlie <airlied@gmail.com>2023-12-22 14:31:53 +1000
committerDave Airlie <airlied@redhat.com>2024-01-05 12:27:53 +1000
commita9b9b42b54b2c9251144b3b9d4ebcd83e5f8c230 (patch)
tree78a55c7ebda108d43f2ac0e369c0797fb41b7e05 /drivers
parent7854ea0e408d7f2e8faaada1773f3ddf9cb538f5 (diff)
nouveau/gsp: free acpi object after use
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
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c b/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c
index 365dda6c002a..1a6d7c89660d 100644
--- a/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c
+++ b/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c
@@ -1226,6 +1226,7 @@ r535_gsp_acpi_dod(acpi_handle handle, DOD_METHOD_DATA *dod)
}
dod->status = 0;
+ kfree(output.pointer);
}
#endif