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
@ -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…
x
Reference in New Issue
Block a user