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 <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 4ae3a20 commit 9c9dd22

File tree

1 file changed

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

1 file changed

+1
-2
lines changed

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)