Blame SOURCES/0001-iwpmd-fix-double-mutex-unlock.patch

6698ac
From c7f4e4485a35b585742c4252816a494eaec1e87c Mon Sep 17 00:00:00 2001
6698ac
From: Bharat Potnuri <bharat@chelsio.com>
6698ac
Date: Wed, 31 Jan 2018 21:07:51 +0530
6698ac
Subject: [PATCH rdma-core] iwpmd: fix double mutex unlock
6698ac
6698ac
pthread_mutex_unlock() is used twice and this patch fixes it.
6698ac
6698ac
Fixes: be3fbf85b ("iwpmd: use ccan list.h for pending_messages")
6698ac
Signed-off-by: Potnuri Bharat Teja <bharat@chelsio.com>
6698ac
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
6698ac
Signed-off-by: Doug Ledford <dledford@redhat.com>
6698ac
---
6698ac
 iwpmd/iwarp_pm_helper.c | 1 -
6698ac
 1 file changed, 1 deletion(-)
6698ac
6698ac
diff --git a/iwpmd/iwarp_pm_helper.c b/iwpmd/iwarp_pm_helper.c
6698ac
index bebc151f..b8c23018 100644
6698ac
--- a/iwpmd/iwarp_pm_helper.c
6698ac
+++ b/iwpmd/iwarp_pm_helper.c
6698ac
@@ -578,7 +578,6 @@ int add_iwpm_pending_msg(iwpm_send_msg *send_msg)
6698ac
 
6698ac
 	pthread_mutex_lock(&pending_msg_mutex);
6698ac
 	list_add(&pending_messages, &pending_msg->entry);
6698ac
- 	pthread_mutex_unlock(&pending_msg_mutex);
6698ac
 	pthread_mutex_unlock(&pending_msg_mutex);
6698ac
 	/* signal the thread that a new message has been posted */
6698ac
 	pthread_cond_signal(&cond_pending_msg);
6698ac
-- 
6698ac
2.16.1
6698ac