1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-02 10:51:20 +03:00

udev: Fix parsing of udev.event-timeout kernel parameter.

This commit is contained in:
Richard W.M. Jones 2014-11-04 23:45:15 +00:00 committed by David Herrmann
parent 01acf6c3b7
commit f671774f52
Notes: Lennart Poettering 2014-11-06 19:54:11 +01:00
Backport: bugfix

View File

@ -994,9 +994,9 @@ static void kernel_cmdline_options(struct udev *udev) {
if (r < 0)
log_warning("Invalid udev.exec-delay ignored: %s", opt + 16);
} else if (startswith(opt, "udev.event-timeout=")) {
r = safe_atou64(opt + 16, &arg_event_timeout_usec);
r = safe_atou64(opt + 19, &arg_event_timeout_usec);
if (r < 0) {
log_warning("Invalid udev.event-timeout ignored: %s", opt + 16);
log_warning("Invalid udev.event-timeout ignored: %s", opt + 19);
break;
}
arg_event_timeout_usec *= USEC_PER_SEC;