From b92511747af31bcfc880b33505c61ef6c96c6dac Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Sat, 3 Jan 2009 04:55:15 +0100 Subject: [PATCH] libudev: device - read "uevent" only if info is not already loaded --- udev/lib/libudev-device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/udev/lib/libudev-device.c b/udev/lib/libudev-device.c index 06227be3..a25716d9 100644 --- a/udev/lib/libudev-device.c +++ b/udev/lib/libudev-device.c @@ -758,7 +758,8 @@ const char *udev_device_get_devtype(struct udev_device *udev_device) return NULL; if (!udev_device->devtype_set) { udev_device->devtype_set = 1; - udev_device_read_uevent_file(udev_device); + if (!udev_device->info_loaded) + udev_device_read_uevent_file(udev_device); } return udev_device->devtype; } -- 2.39.5