diff options
author | Takashi Iwai <tiwai@suse.de> | 2017-06-07 10:25:30 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-06-07 10:25:30 +0200 |
commit | 4c7aba46c9e82aa236502760a677e666589afead (patch) | |
tree | 9baa94b072fa58c674c34b8ddaec8b9e727e1657 /drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c | |
parent | d2dc2a96de9d58038ac1f9ee432e88a70958d59b (diff) | |
parent | ba3021b2c79b2fa9114f92790a99deb27a65b728 (diff) | |
download | linux-4c7aba46c9e82aa236502760a677e666589afead.tar.bz2 |
Merge branch 'for-linus' into for-next
For applying more ALSA timer cleanups.
Diffstat (limited to 'drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c')
-rw-r--r-- | drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c b/drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c index e1909429837e..de80ee1b71df 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c @@ -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); } |