diff options
author | Lee Duncan <leeman.duncan@gmail.com> | 2016-08-11 11:53:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-11 11:53:19 -0700 |
commit | efdd487c70269749f03be8342c4fde8fd3b59f8a (patch) | |
tree | 2637a312632d2020b983d15a2c921a19267b41ba | |
parent | 4c1f2d90ef1c73e33d9f1e4ae9c206ffe015a8f9 (diff) | |
parent | 4191ca6b82efe06f6c5290bc68904dd11674e680 (diff) | |
download | open-iscsi-efdd487c70269749f03be8342c4fde8fd3b59f8a.tar.gz |
Merge pull request #22 from frank-fegert/master
Segfaults from iscsiuio (iscsiuio/src/unix/nic_nl.c)
-rw-r--r-- | iscsiuio/src/unix/nic_nl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/iscsiuio/src/unix/nic_nl.c b/iscsiuio/src/unix/nic_nl.c index 391003f..1a920c7 100644 --- a/iscsiuio/src/unix/nic_nl.c +++ b/iscsiuio/src/unix/nic_nl.c @@ -483,9 +483,11 @@ void *nl_process_handle_thread(void *arg) while (!event_loop_stop) { char *data = NULL; + pthread_mutex_lock(&nic->nl_process_mutex); rc = pthread_cond_wait(&nic->nl_process_cond, &nic->nl_process_mutex); if (rc != 0) { + pthread_mutex_unlock(&nic->nl_process_mutex); LOG_ERR("Fatal error in NL processing thread " "during wait[%s]", strerror(rc)); break; |