drm/i915: Assign request ringbuf before pin
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Mon, 6 Jul 2015 08:08:30 +0000 (11:08 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 6 Jul 2015 14:46:07 +0000 (16:46 +0200)
commitf3cc01f0948c1deb12cfb1da2959f391229c9d4b
treeec35699591fcaa0e90cfa56f8a1c3d3dc73fa3c3
parent05d9824bfb40e211c8804fee65af1fbb736925a2
drm/i915: Assign request ringbuf before pin

In preparation to make intel_lr_context_pin|unpin to accept
requests, assign ringbuf into request before we call the pinning.

v2: No need to unset ringbuf on error path (Chris)

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_lrc.c