Skip to content

Commit a9b9b42

Browse files
committed
nouveau/gsp: free acpi object after use
This fixes a memory leak for the acpi dod object. Signed-off-by: Dave Airlie <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 7854ea0 commit a9b9b42

File tree

1 file changed

+1
-0
lines changed
  • drivers/gpu/drm/nouveau/nvkm/subdev/gsp

1 file changed

+1
-0
lines changed

drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,6 +1226,7 @@ r535_gsp_acpi_dod(acpi_handle handle, DOD_METHOD_DATA *dod)
12261226
}
12271227

12281228
dod->status = 0;
1229+
kfree(output.pointer);
12291230
}
12301231
#endif
12311232

0 commit comments

Comments
 (0)