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 <namcao@linutronix.de> Cc: stable@vger.kernel.org Reviewed-by: Lyude Paul <lyude@redhat.com> Signed-off-by: Lyude Paul <lyude@redhat.com> Link: https://patch.msgid.link/20251117084231.2910561-1-namcao@linutronix.de
1 parent 660b299 commit 949f1fd

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • drivers/gpu/drm/nouveau/nvkm/falcon

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)