Commit 1299b637 authored by Alexandre Courbot's avatar Alexandre Courbot Committed by Ben Skeggs

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: default avatarAlexandre Courbot <acourbot@nvidia.com>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 1a0c96c0
...@@ -2494,7 +2494,8 @@ nvkm_device_ctor(const struct nvkm_device_func *func, ...@@ -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;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment