Message ID | 20240105184037.16518-3-mwilck@suse.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Delegated to: | christophe varoqui |
Headers | show |
Series | multipath-tools: coverity defect fixes | expand |
diff --git a/libmultipath/uevent.c b/libmultipath/uevent.c index 3b5dd31..32135d7 100644 --- a/libmultipath/uevent.c +++ b/libmultipath/uevent.c @@ -82,12 +82,13 @@ static void reset_filter_state(struct uevent_filter_state *st) int is_uevent_busy(void) { - int empty; + int empty, servicing; pthread_mutex_lock(uevq_lockp); empty = list_empty(&uevq); + servicing = servicing_uev; pthread_mutex_unlock(uevq_lockp); - return (!empty || servicing_uev); + return (!empty || servicing); } struct uevent * alloc_uevent (void)