Skip to content

Commit 9c9dd22

Browse files
committed
nouveau/gsp: always free the alloc messages on r535
Fixes a memory leak seen with kmemleak. Signed-off-by: Dave Airlie <airlied@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20231222043308.3090089-10-airlied@gmail.com
1 parent 4ae3a20 commit 9c9dd22

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • drivers/gpu/drm/nouveau/nvkm/subdev/gsp

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -605,8 +605,7 @@ r535_gsp_rpc_rm_alloc_push(struct nvkm_gsp_object *object, void *argv, u32 repc)
605605
ret = repc ? rpc->params : NULL;
606606
}
607607

608-
if (ret)
609-
nvkm_gsp_rpc_done(gsp, rpc);
608+
nvkm_gsp_rpc_done(gsp, rpc);
610609

611610
return ret;
612611
}

0 commit comments

Comments
 (0)