diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM index 113a4bbe3..9e6a849f2 100644 --- a/WHATS_NEW_DM +++ b/WHATS_NEW_DM @@ -1,5 +1,6 @@ Version 1.02.111 - ==================================== + Add missing fifo close when failed to initialize client connection. Version 1.02.110 - 30th October 2015 ==================================== diff --git a/daemons/dmeventd/libdevmapper-event.c b/daemons/dmeventd/libdevmapper-event.c index ee4a35c65..9b3b4244a 100644 --- a/daemons/dmeventd/libdevmapper-event.c +++ b/daemons/dmeventd/libdevmapper-event.c @@ -587,8 +587,8 @@ static int _do_event(int cmd, char *dmeventd_path, struct dm_event_daemon_messag }; if (!_init_client(dmeventd_path, &fifos)) { - stack; - return -ESRCH; + ret = -ESRCH; + goto_out; } ret = daemon_talk(&fifos, msg, DM_EVENT_CMD_HELLO, NULL, NULL, 0, 0); @@ -598,7 +598,7 @@ static int _do_event(int cmd, char *dmeventd_path, struct dm_event_daemon_messag if (!ret) ret = daemon_talk(&fifos, msg, cmd, dso_name, dev_name, evmask, timeout); - +out: /* what is the opposite of init? */ fini_fifos(&fifos);