File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1333,8 +1333,6 @@ int etnaviv_gpu_submit(struct etnaviv_gpu *gpu,
1333
1333
if (ret < 0 )
1334
1334
return ret ;
1335
1335
1336
- mutex_lock (& gpu -> lock );
1337
-
1338
1336
/*
1339
1337
* TODO
1340
1338
*
@@ -1348,16 +1346,18 @@ int etnaviv_gpu_submit(struct etnaviv_gpu *gpu,
1348
1346
if (unlikely (event == ~0U )) {
1349
1347
DRM_ERROR ("no free event\n" );
1350
1348
ret = - EBUSY ;
1351
- goto out_unlock ;
1349
+ goto out_pm_put ;
1352
1350
}
1353
1351
1354
1352
fence = etnaviv_gpu_fence_alloc (gpu );
1355
1353
if (!fence ) {
1356
1354
event_free (gpu , event );
1357
1355
ret = - ENOMEM ;
1358
- goto out_unlock ;
1356
+ goto out_pm_put ;
1359
1357
}
1360
1358
1359
+ mutex_lock (& gpu -> lock );
1360
+
1361
1361
gpu -> event [event ].fence = fence ;
1362
1362
submit -> fence = fence -> seqno ;
1363
1363
gpu -> active_fence = submit -> fence ;
@@ -1395,9 +1395,9 @@ int etnaviv_gpu_submit(struct etnaviv_gpu *gpu,
1395
1395
hangcheck_timer_reset (gpu );
1396
1396
ret = 0 ;
1397
1397
1398
- out_unlock :
1399
1398
mutex_unlock (& gpu -> lock );
1400
1399
1400
+ out_pm_put :
1401
1401
etnaviv_gpu_pm_put (gpu );
1402
1402
1403
1403
return ret ;
You can’t perform that action at this time.
0 commit comments