···432433 if (ctx.handle != DRM_KERNEL_CONTEXT) {434 if (dev->driver->context_ctor)0000435 dev->driver->context_ctor(dev, ctx.handle);436 }437
···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 }441