summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2009-01-03 04:55:15 +0100
committerKay Sievers <kay.sievers@vrfy.org>2009-01-03 04:55:15 +0100
commitb92511747af31bcfc880b33505c61ef6c96c6dac (patch)
tree1b7c4fecc35c6aeba17838ed174a102b7f9bc1e0
parentdb71b500b2fe1fc74c4d9b60082cb142283b6eda (diff)
libudev: device - read "uevent" only if info is not already loaded
-rw-r--r--udev/lib/libudev-device.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/udev/lib/libudev-device.c b/udev/lib/libudev-device.c
index 06227be328..a25716d95d 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;
}