projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98940a3
)
udevd: don't take reference for NULL rtnl object
author
Tom Gundersen
<teg@jklm.no>
Wed, 3 Dec 2014 19:00:28 +0000
(20:00 +0100)
committer
Tom Gundersen
<teg@jklm.no>
Wed, 3 Dec 2014 20:36:10 +0000
(21:36 +0100)
src/udev/udevd.c
patch
|
blob
|
history
diff --git
a/src/udev/udevd.c
b/src/udev/udevd.c
index
ab2b4ba
..
6a8dda3
100644
(file)
--- a/
src/udev/udevd.c
+++ b/
src/udev/udevd.c
@@
-315,8
+315,9
@@
static void worker_new(struct event *event) {
arg_event_timeout_usec, arg_event_timeout_warn_usec,
&sigmask_orig);
- /* in case rtnl was initialized */
- rtnl = sd_rtnl_ref(udev_event->rtnl);
+ if (udev_event->rtnl)
+ /* in case rtnl was initialized */
+ rtnl = sd_rtnl_ref(udev_event->rtnl);
/* apply/restore inotify watch */
if (udev_event->inotify_watch) {