mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-03-06 12:58:22 +03:00
udev-node: make link_find_prioritized() return negative value when nothing found
Fixes a bug introduced by a2554acec652fc65c8ed0c6c1fede9ba8c3693b1. Fixes RHBZ#1662303.
This commit is contained in:
parent
c501ecd70c
commit
82d9ac23fd
@ -181,6 +181,9 @@ static int link_find_prioritized(sd_device *dev, bool add, const char *stackdir,
|
||||
priority = db_prio;
|
||||
}
|
||||
|
||||
if (!target)
|
||||
return -ENOENT;
|
||||
|
||||
*ret = TAKE_PTR(target);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user