[systemd-commits] src/udev
Kay Sievers
kay at kemper.freedesktop.org
Wed May 30 16:18:06 PDT 2012
src/udev/udev-rules.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit da5d4bf64f96d21c664bc6fea37f4f28927beb2c
Author: Kay Sievers <kay at vrfy.org>
Date: Thu May 31 01:15:21 2012 +0200
udev: skip timestamp check if rules are already free()d during reload
diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c
index 930c477..b5b54dd 100644
--- a/src/udev/udev-rules.c
+++ b/src/udev/udev-rules.c
@@ -1858,6 +1858,9 @@ bool udev_rules_check_timestamp(struct udev_rules *rules)
unsigned int i;
bool changed = false;
+ if (rules == NULL)
+ goto out;
+
for (i = 0; rules->dirs[i]; i++) {
struct stat stats;
@@ -1876,7 +1879,7 @@ bool udev_rules_check_timestamp(struct udev_rules *rules)
/* update timestamp */
rules->dirs_ts_usec[i] = ts_usec(&stats.st_mtim);
}
-
+out:
return changed;
}
More information about the systemd-commits
mailing list