Skip to content

Commit

Permalink
nouveau/gsp: always free the alloc messages on r535
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Dave Airlie authored and Dave Airlie committed Jan 5, 2024
1 parent 4ae3a20 commit 9c9dd22
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c
Original file line number Diff line number Diff line change
Expand Up @@ -605,8 +605,7 @@ r535_gsp_rpc_rm_alloc_push(struct nvkm_gsp_object *object, void *argv, u32 repc)
ret = repc ? rpc->params : NULL;
}

if (ret)
nvkm_gsp_rpc_done(gsp, rpc);
nvkm_gsp_rpc_done(gsp, rpc);

return ret;
}
Expand Down

0 comments on commit 9c9dd22

Please sign in to comment.