diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-01-29 14:03:29 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-01-29 14:07:21 +0100 |
commit | 8671411668e9b15bc3dadcb4e48ff43f6a8461d3 (patch) | |
tree | f76060e62ef4671cbd8f0b1ca316639c8fe22c66 /src | |
parent | baa461fc05934d02ece3abd7666c144549c695cf (diff) | |
download | systemd-8671411668e9b15bc3dadcb4e48ff43f6a8461d3.tar.gz systemd-8671411668e9b15bc3dadcb4e48ff43f6a8461d3.tar.bz2 systemd-8671411668e9b15bc3dadcb4e48ff43f6a8461d3.zip |
udevd: save the result of devnum or ifindex blocker
Diffstat (limited to 'src')
-rw-r--r-- | src/udev/udevd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c index 79191ffaf1..2b7775f724 100644 --- a/src/udev/udevd.c +++ b/src/udev/udevd.c @@ -727,7 +727,7 @@ static int is_device_busy(Manager *manager, struct event *event) { if (sd_device_get_devnum(loop_event->dev, &d) >= 0 && devnum == d && is_block == streq(s, "block")) - return true; + goto set_delaying_seqnum; } /* check network device ifindex */ @@ -736,7 +736,7 @@ static int is_device_busy(Manager *manager, struct event *event) { if (sd_device_get_ifindex(loop_event->dev, &i) >= 0 && ifindex == i) - return true; + goto set_delaying_seqnum; } if (sd_device_get_devpath(loop_event->dev, &loop_devpath) < 0) |