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
MFC after: 3 days
This commit is contained in:
Ram Kishore Vegesna 2018-06-05 15:05:26 +00:00
parent 1851d70d31
commit ca21db8546
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334657

View File

@ -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");