Commit da5d4bf6 authored by Kay Sievers's avatar Kay Sievers Committed by Kay Sievers
Browse files

udev: skip timestamp check if rules are already free()d during reload

parent 107a2db9
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment