diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/intel_device.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/intel_device.c b/src/intel_device.c index bd66ae69..87804698 100644 --- a/src/intel_device.c +++ b/src/intel_device.c @@ -263,6 +263,9 @@ static char *get_path(struct xf86_platform_device *dev) #if defined(ODEV_ATTRIB_FD) static int get_fd(struct xf86_platform_device *dev) { + if (dev == NULL) + return -1; + return xf86_get_platform_device_int_attrib(dev, ODEV_ATTRIB_FD, -1); } |