drm: proper fix for drm_context

Bad patch in last version

Signed-off-by: Dave Airlie <airlied@linux.ie>

authored by Dave Airlie and committed by Dave Airlie 1e7d5190 b5e9fc13

+1 -2
+1 -2
drivers/char/drm/drm_context.c
··· 432 433 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 442 ctx_entry = drm_alloc(sizeof(*ctx_entry), DRM_MEM_CTXLIST);
··· 432 433 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 } 440 441 ctx_entry = drm_alloc(sizeof(*ctx_entry), DRM_MEM_CTXLIST);