aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2018-06-14 17:42:19 +0000
committerGlen Barber <gjb@FreeBSD.org>2018-06-14 17:42:19 +0000
commitc6445771df854ba74970a3350f30d7b3e2dad093 (patch)
treeb00f3af5ab6aa2eedb63b13d2a82e0940c37e305
parent858fc6e71acf864d6f3357c08624f3dcdba2dba4 (diff)
downloadsrc-c6445771df854ba74970a3350f30d7b3e2dad093.tar.gz
src-c6445771df854ba74970a3350f30d7b3e2dad093.zip
MFS11 r334872 (ram):
MFC r334657: Issue: Utility hangs when OCS_IOCTL_CMD_MGMT_GET_ALL called in parallel on port 0 and port 1. Fix: Using static structure for results is corrupting the second ioctl request. Removed static for results structure. Approved by: re (marius) Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/releng/11.2/; revision=335163
-rw-r--r--sys/dev/ocs_fc/ocs_mgmt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ocs_fc/ocs_mgmt.c b/sys/dev/ocs_fc/ocs_mgmt.c
index 170dff6e931c..2532745ff876 100644
--- a/sys/dev/ocs_fc/ocs_mgmt.c
+++ b/sys/dev/ocs_fc/ocs_mgmt.c
@@ -2373,7 +2373,7 @@ static void
get_nv_wwpn(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf)
{
char result_string[24];
- static ocs_mgmt_get_nvparms_result_t result;
+ ocs_mgmt_get_nvparms_result_t result;
ocs_sem_init(&(result.semaphore), 0, "get_nv_wwpn");
@@ -2411,7 +2411,7 @@ static void
get_nv_wwnn(ocs_t *ocs, char *name, ocs_textbuf_t *textbuf)
{
char result_string[24];
- static ocs_mgmt_get_nvparms_result_t result;
+ ocs_mgmt_get_nvparms_result_t result;
ocs_sem_init(&(result.semaphore), 0, "get_nv_wwnn");