svn commit: r334872 - stable/11/sys/dev/ocs_fc
Ram Kishore Vegesna
ram at FreeBSD.org
Sat Jun 9 04:05:19 UTC 2018
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");
More information about the svn-src-stable
mailing list