aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/loader
diff options
context:
space:
mode:
Diffstat (limited to 'mesalib/src/loader')
-rw-r--r--mesalib/src/loader/loader.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesalib/src/loader/loader.c b/mesalib/src/loader/loader.c
index bdd390691..94c993ac8 100644
--- a/mesalib/src/loader/loader.c
+++ b/mesalib/src/loader/loader.c
@@ -594,6 +594,9 @@ libudev_get_device_name_for_fd(int fd)
(struct udev_device *));
UDEV_SYMBOL(struct udev *, udev_unref, (struct udev *));
+ if (dlsym_failed)
+ return NULL;
+
udev = udev_new();
device = udev_device_new_from_fd(udev, fd);
if (device == NULL)