On Tue, Oct 16, 2012 at 01:39:06PM -0400, Adam Jackson wrote:
> On 10/15/12 6:07 AM, Thierry Reding wrote:
> >For non-PCI video devices, such as those found on many ARM embedded
> >systems, the X server currently requires the BusID option to specify the
> >full path to the DRM device's sysfs node in order to properly match it
> >against the probed platform devices.
> >
> >In order to allow X to start up properly if either the BusID option was
> >omitted or no configuration is present at all, the first video device is
> >used by default.
> >
> >Signed-off-by: Thierry Reding <[email protected]>
> 
> Reviewed-by: Adam Jackson <[email protected]>

In retrospect I think the check could be enhanced with some safety
checks, like xf86_num_platform_devices > 0 && numDevs > 0. Otherwise
this will actually crash if no platform devices are present in the
system, which could happen if the corresponding driver wasn't loaded.

I'll prepare another patch and will resend. Thanks for reviewing!

Thierry

Attachment: pgpoAyZWqS8j4.pgp
Description: PGP signature

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to