chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
db71b50
)
libudev: device - read "uevent" only if info is not already loaded
author
Kay Sievers
<kay.sievers@vrfy.org>
Sat, 3 Jan 2009 03:55:15 +0000
(
04:55
+0100)
committer
Kay Sievers
<kay.sievers@vrfy.org>
Sat, 3 Jan 2009 03:55:15 +0000
(
04:55
+0100)
udev/lib/libudev-device.c
patch
|
blob
|
history
diff --git
a/udev/lib/libudev-device.c
b/udev/lib/libudev-device.c
index 06227be328c0851a121c7b08463903aba18158d0..a25716d95d58d323dbf2bbf182dc93261f4993cc 100644
(file)
--- 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;
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;
}
}
return udev_device->devtype;
}