diff options
Diffstat (limited to 'drivers/gpu/drm')
| -rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c b/drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c index 274457ca3fef..4cf36a3aa814 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c | |||
| @@ -358,12 +358,11 @@ nvkm_perfctx_ctor(struct nvkm_object *parent, struct nvkm_object *engine, | |||
| 358 | mutex_lock(&nv_subdev(ppm)->mutex); | 358 | mutex_lock(&nv_subdev(ppm)->mutex); |
| 359 | if (ppm->context == NULL) | 359 | if (ppm->context == NULL) |
| 360 | ppm->context = ctx; | 360 | ppm->context = ctx; |
| 361 | mutex_unlock(&nv_subdev(ppm)->mutex); | ||
| 362 | |||
| 363 | if (ctx != ppm->context) | 361 | if (ctx != ppm->context) |
| 364 | return -EBUSY; | 362 | ret = -EBUSY; |
| 363 | mutex_unlock(&nv_subdev(ppm)->mutex); | ||
| 365 | 364 | ||
| 366 | return 0; | 365 | return ret; |
| 367 | } | 366 | } |
| 368 | 367 | ||
| 369 | struct nvkm_oclass | 368 | struct nvkm_oclass |
