summaryrefslogtreecommitdiff
path: root/udev.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev.c')
-rw-r--r--udev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/udev.c b/udev.c
index ac29ec6f44..71c5f1fba5 100644
--- a/udev.c
+++ b/udev.c
@@ -119,7 +119,7 @@ int main(int argc, char **argv, char **envp)
retval = udevdb_init(UDEVDB_DEFAULT);
if (retval != 0) {
dbg("unable to initialize database");
- goto exit;
+ goto exit_sysbus;
}
/* initialize the naming deamon */
@@ -137,6 +137,7 @@ int main(int argc, char **argv, char **envp)
}
udevdb_exit();
+exit_sysbus:
/* disconnect from the system message bus */
sysbus_disconnect();