diff options
author | mbuesch@freenet.de <mbuesch@freenet.de> | 2003-12-24 22:58:16 -0800 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:13:11 -0700 |
commit | df496acbee49c5974f9ed42a92cca4a119315643 (patch) | |
tree | c854fcf06c9707b19af904ddbbb238734af89bd2 | |
parent | ee15698133ecd754c0d847b6ebb3a533536a42dc (diff) |
[PATCH] proper cleanup on udevdb_init() failure
Seems like we need the following patch to do
proper sysbus cleanup, if udevdb_init() fails.
-rw-r--r-- | udev.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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(); |