28d3ae407e
This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/device-mapper-multipath.git#26a2cd7a3e189bf91263d17bc8a8c449cc043fb0
29 lines
797 B
Diff
29 lines
797 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Martin Wilck <mwilck@suse.com>
|
|
Date: Wed, 23 Sep 2020 18:45:30 +0200
|
|
Subject: [PATCH] multipathd: unwatch_all_dmevents: check if waiter is
|
|
initialized
|
|
|
|
Reviewed-by: Benjamin Marzinski <bmarzins@redhat.com>
|
|
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
|
|
---
|
|
multipathd/dmevents.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/multipathd/dmevents.c b/multipathd/dmevents.c
|
|
index b561cbfd..f52f5970 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.17.2
|
|
|