mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
Merge branch 'etnaviv/fixes' of https://git.pengutronix.de/git/lst/linux into drm-fixes
one etnaviv fence leak fix. * 'etnaviv/fixes' of https://git.pengutronix.de/git/lst/linux: drm/etnaviv: don't put fence in case of submit failure
This commit is contained in:
commit
389cf7080c
1 changed files with 3 additions and 1 deletions
|
@ -44,6 +44,7 @@ static struct etnaviv_gem_submit *submit_create(struct drm_device *dev,
|
|||
|
||||
/* initially, until copy_from_user() and bo lookup succeeds: */
|
||||
submit->nr_bos = 0;
|
||||
submit->fence = NULL;
|
||||
|
||||
ww_acquire_init(&submit->ticket, &reservation_ww_class);
|
||||
}
|
||||
|
@ -294,7 +295,8 @@ static void submit_cleanup(struct etnaviv_gem_submit *submit)
|
|||
}
|
||||
|
||||
ww_acquire_fini(&submit->ticket);
|
||||
dma_fence_put(submit->fence);
|
||||
if (submit->fence)
|
||||
dma_fence_put(submit->fence);
|
||||
kfree(submit);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue