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:
Dave Airlie 2023-12-22 14:31:58 +10:00 committed by Dave Airlie
parent 4ae3a20102
commit 9c9dd22ba5

View file

@ -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;
}