[PATCH] proper cleanup on udevdb_init() failure

Seems like we need the following patch to do
proper sysbus cleanup, if udevdb_init() fails.
This commit is contained in:
mbuesch@freenet.de 2003-12-24 22:58:16 -08:00 committed by Greg KH
parent ee15698133
commit df496acbee
1 changed files with 2 additions and 1 deletions

3
udev.c
View File

@ -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();