intel: Prevent crash with X -configure
When run with -configure, xf86configptr is NULL, so be careful and do not dereference it. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
f696867c89
commit
aa44ba990a
|
|
@ -514,6 +514,9 @@ static enum accel_method { NOACCEL, SNA, UXA } get_accel_method(void)
|
|||
if (hosted())
|
||||
return SNA;
|
||||
|
||||
if (xf86configptr == NULL) /* X -configure */
|
||||
return SNA;
|
||||
|
||||
dev = _xf86findDriver("intel", xf86configptr->conf_device_lst);
|
||||
if (dev && dev->dev_option_lst) {
|
||||
const char *s;
|
||||
|
|
|
|||
Loading…
Reference in New Issue