summaryrefslogtreecommitdiff
path: root/udev.c
diff options
context:
space:
mode:
authormbuesch@freenet.de <mbuesch@freenet.de>2003-12-24 22:58:16 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:11 -0700
commitdf496acbee49c5974f9ed42a92cca4a119315643 (patch)
treec854fcf06c9707b19af904ddbbb238734af89bd2 /udev.c
parentee15698133ecd754c0d847b6ebb3a533536a42dc (diff)
[PATCH] proper cleanup on udevdb_init() failure
Seems like we need the following patch to do proper sysbus cleanup, if udevdb_init() fails.
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();