search for: out_free_bo

Displaying 3 results from an estimated 3 matches for "out_free_bo".

Did you mean: out_free_bd
2023 Apr 05
0
[PATCH] drm/nouveau: Add a jump label in nouveau_gem_ioctl_pushbuf()
...nouveau_gem.c +++ b/drivers/gpu/drm/nouveau/nouveau_gem.c @@ -814,7 +814,7 @@ nouveau_gem_ioctl_pushbuf(struct drm_device *dev, void *data, reloc = u_memcpya(req->relocs, req->nr_relocs, sizeof(*reloc)); if (IS_ERR(reloc)) { ret = PTR_ERR(reloc); - goto out_prevalid; + goto out_free_bo; } goto revalidate; @@ -929,6 +929,7 @@ nouveau_gem_ioctl_pushbuf(struct drm_device *dev, void *data, out_prevalid: if (!IS_ERR(reloc)) u_free(reloc); +out_free_bo: u_free(bo); u_free(push); -- 2.40.0
2020 Apr 29
0
[PATCH 1/1] drm/qxl: add mutex_lock/mutex_unlock to ensure the order in which resources are rele
...(release); > ret = qxl_push_command_ring_release(qdev, release, cmd->type, true); > - if (ret) > - qxl_release_backoff_reserve_list(release); <<<< ???? > - else > - qxl_release_fence_buffer_objects(release); > - > out_free_bos: > out_free_release: if (ret) qxl_release_free(qdev, release); [ code context added ] qxl_release_free() checks whenever a release is fenced and signals the fence in case it is so it doesn't wait for the signal forever. So, yes, I think qxl_release_free() should cleanup the release p...
2023 Apr 07
0
[PATCH] drm/qxl: remove unused num_relocs variable
...used so remove it. > > Signed-off-by: Tom Rix <trix at redhat.com> Thanks for the patch! Fixes: 74d9a6335dce ("drm/qxl: Simplify cleaning qxl processing command") Reviewed-by: Nick Desaulniers <ndesaulniers at google.com> That commit should also have removed the label out_free_bos IMO since having two labels for the same statement is a code smell. Tom, do you mind sending a v2 with that folded in? > --- > drivers/gpu/drm/qxl/qxl_ioctl.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/qxl/qxl_ioctl.c b/drivers/gpu...