Skip to content

Commit 949f1fd

Browse files
covanamLyude
authored andcommitted
nouveau/firmware: Add missing kfree() of nvkm_falcon_fw::boot
nvkm_falcon_fw::boot is allocated, but no one frees it. This causes a kmemleak warning. Make sure this data is deallocated. Fixes: 2541626 ("drm/nouveau/acr: use common falcon HS FW code for ACR FWs") Signed-off-by: Nam Cao <[email protected]> Cc: [email protected] Reviewed-by: Lyude Paul <[email protected]> Signed-off-by: Lyude Paul <[email protected]> Link: https://patch.msgid.link/[email protected]
1 parent 660b299 commit 949f1fd

File tree

1 file changed

+2
-0
lines changed
  • drivers/gpu/drm/nouveau/nvkm/falcon

1 file changed

+2
-0
lines changed

drivers/gpu/drm/nouveau/nvkm/falcon/fw.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ nvkm_falcon_fw_dtor(struct nvkm_falcon_fw *fw)
159159
nvkm_memory_unref(&fw->inst);
160160
nvkm_falcon_fw_dtor_sigs(fw);
161161
nvkm_firmware_dtor(&fw->fw);
162+
kfree(fw->boot);
163+
fw->boot = NULL;
162164
}
163165

164166
static const struct nvkm_firmware_func

0 commit comments

Comments
 (0)