projects
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80f71e7
)
udev-node: make link_find_prioritized() return negative value when nothing found
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Tue, 8 Jan 2019 17:46:03 +0000
(
02:46
+0900)
committer
Michael Biebl
<biebl@debian.org>
Sat, 12 Jan 2019 20:49:44 +0000
(20:49 +0000)
Fixes a bug introduced by
a2554acec652fc65c8ed0c6c1fede9ba8c3693b1
.
Fixes RHBZ#
1662303
.
(cherry picked from commit
82d9ac23fd5ab2befe2a95187640a8d38799dd64
)
(cherry picked from commit
f665fe3e2e74548a2a236f3b7635227621aa568a
)
Gbp-Pq: Name udev-node-make-link_find_prioritized-return-negative-valu.patch
src/udev/udev-node.c
patch
|
blob
|
history
diff --git
a/src/udev/udev-node.c
b/src/udev/udev-node.c
index c11eb8c1acee439498d4d1fbab8b3071bd297870..c77010c09b99a91341f18a169bd25640d9630c54 100644
(file)
--- a/
src/udev/udev-node.c
+++ b/
src/udev/udev-node.c
@@
-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;
}