From: Martin Wilck <mwilck@xxxxxxxx> Reviewed-by: Benjamin Marzinski <bmarzins@xxxxxxxxxx> Signed-off-by: Martin Wilck <mwilck@xxxxxxxx> --- multipathd/dmevents.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/multipathd/dmevents.c b/multipathd/dmevents.c index b561cbf..f52f597 100644 --- a/multipathd/dmevents.c +++ b/multipathd/dmevents.c @@ -257,6 +257,8 @@ void unwatch_all_dmevents(void) struct dev_event *dev_evt; int i; + if (!waiter) + return; pthread_mutex_lock(&waiter->events_lock); vector_foreach_slot(waiter->events, dev_evt, i) free(dev_evt); -- 2.28.0 -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel