Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Jun 2018 04:05:18 +0000 (UTC)
From:      Ram Kishore Vegesna <ram@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r334872 - stable/11/sys/dev/ocs_fc
Message-ID:  <201806090405.w5945IHs012805@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ram
Date: Sat Jun  9 04:05:18 2018
New Revision: 334872
URL: https://svnweb.freebsd.org/changeset/base/334872

Log:
  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: ken

Modified:
  stable/11/sys/dev/ocs_fc/ocs_mgmt.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/ocs_fc/ocs_mgmt.c
==============================================================================
--- stable/11/sys/dev/ocs_fc/ocs_mgmt.c	Sat Jun  9 03:08:04 2018	(r334871)
+++ stable/11/sys/dev/ocs_fc/ocs_mgmt.c	Sat Jun  9 04:05:18 2018	(r334872)
@@ -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");
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806090405.w5945IHs012805>