From: Martin Wilck <mwilck@xxxxxxxx> The polls array is dereferenced later on, so even if we are soon to be cancelled, we should return immediately here. Reviewed-by: Benjamin Marzinski <bmarzins@xxxxxxxxxx> Signed-off-by: Martin Wilck <mwilck@xxxxxxxx> --- multipathd/uxlsnr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/multipathd/uxlsnr.c b/multipathd/uxlsnr.c index cd025ea..912ac3c 100644 --- a/multipathd/uxlsnr.c +++ b/multipathd/uxlsnr.c @@ -609,6 +609,7 @@ void *uxsock_listen(long ux_sock, void *trigger_data) if (!polls) { condlog(0, "uxsock: failed to allocate poll fds"); exit_daemon(); + return NULL; } notify_fd = inotify_init1(IN_NONBLOCK); if (notify_fd == -1) /* it's fine if notifications fail */ -- 2.33.1 -- dm-devel mailing list dm-devel@xxxxxxxxxx https://listman.redhat.com/mailman/listinfo/dm-devel