View | Details | Raw Unified | Return to bug 132271
Collapse All | Expand All

(-)drivers/char/drm/drm_context.c.orig (-1 / +4 lines)
Lines 418-424 Link Here
418
	if ( ctx.handle != DRM_KERNEL_CONTEXT )
418
	if ( ctx.handle != DRM_KERNEL_CONTEXT )
419
	{
419
	{
420
		if (dev->driver->context_ctor)
420
		if (dev->driver->context_ctor)
421
			dev->driver->context_ctor(dev, ctx.handle);
421
			if (!dev->driver->context_ctor(dev, ctx.handle)) {
422
				DRM_DEBUG( "Running out of ctxs or memory.\n");
423
				return -ENOMEM;
424
			}
422
	}
425
	}
423
426
424
	ctx_entry = drm_alloc( sizeof(*ctx_entry), DRM_MEM_CTXLIST );
427
	ctx_entry = drm_alloc( sizeof(*ctx_entry), DRM_MEM_CTXLIST );

Return to bug 132271