[PATCH] drm: Avoid NULL master_priv access in i915 kernel driver

2014-02-12 Thread Daniel Vetter
On Wed, Feb 12, 2014 at 11:24 PM, St?phane Marchesin wrote: > From: Stuart Abercrombie > > In several places, including the interrupt handler, the i915 driver assumes > it can deref. dev->primary->master->driver_priv if dev->primary->master > is non-NULL. This wasn't true if drm_open_helper was

[PATCH] drm: Avoid NULL master_priv access in i915 kernel driver

2014-02-12 Thread Stéphane Marchesin
From: Stuart Abercrombie In several places, including the interrupt handler, the i915 driver assumes it can deref. dev->primary->master->driver_priv if dev->primary->master is non-NULL. This wasn't true if drm_open_helper was midway through, so rearrange the initialization order. v2: Address th