mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 14:19:16 +00:00
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
This commit is contained in:
parent
4ae3a20102
commit
9c9dd22ba5
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue