[PATCH 04/11] nouveau/gsp: free acpi object after use
Dave Airlie
airlied at gmail.com
Fri Dec 22 04:31:53 UTC 2023
This fixes a memory leak for the acpi dod object.
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c | 1 +
1 file changed, 1 insertion(+)
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
--
2.43.0
More information about the dri-devel
mailing list