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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Feb 12, 2014 at 11:24 PM, Stéphane Marchesin
<marcheu@xxxxxxxxxxxx> wrote:
> From: Stuart Abercrombie <sabercrombie@xxxxxxxxxxxx>
>
> 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 this in drm_open_helper instead of the various access points --
> basically Stephane's fix.
>
> Signed-off-by: Stuart Abercrombie <sabercrombie@xxxxxxxxxxxx>
> Signed-off-by: Stéphane Marchesin <marcheu@xxxxxxxxxxxx>

Those master_priv derefs in i915 all pre-kms remnants and (for the
stuff in intel_display.c) misguided wip state somehow still left
around. I'll prep patches to kill it all in i915.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel





[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux