drm/nouveau/core: fix return in error path of device probe

We want to unlock nv_devices_mutex in this error path as well.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
Alexandre Courbot 2015-10-26 14:55:37 +09:00 committed by Ben Skeggs
parent 1a0c96c075
commit 1299b6377b
1 changed files with 2 additions and 1 deletions

View File

@ -2494,7 +2494,8 @@ nvkm_device_ctor(const struct nvkm_device_func *func,
device->pri = ioremap(mmio_base, mmio_size); device->pri = ioremap(mmio_base, mmio_size);
if (!device->pri) { if (!device->pri) {
nvdev_error(device, "unable to map PRI\n"); nvdev_error(device, "unable to map PRI\n");
return -ENOMEM; ret = -ENOMEM;
goto done;
} }
} }