···432433 if (ctx.handle != DRM_KERNEL_CONTEXT) {434 if (dev->driver->context_ctor)435- if (dev->driver->context_ctor(dev, ctx.handle)) {436 DRM_DEBUG("Running out of ctxs or memory.\n");437 return -ENOMEM;438 }439- dev->driver->context_ctor(dev, ctx.handle);440 }441442 ctx_entry = drm_alloc(sizeof(*ctx_entry), DRM_MEM_CTXLIST);
···432433 if (ctx.handle != DRM_KERNEL_CONTEXT) {434 if (dev->driver->context_ctor)435+ if (!dev->driver->context_ctor(dev, ctx.handle)) {436 DRM_DEBUG("Running out of ctxs or memory.\n");437 return -ENOMEM;438 }0439 }440441 ctx_entry = drm_alloc(sizeof(*ctx_entry), DRM_MEM_CTXLIST);