Date: Tue, 5 Jun 2018 15:05:26 +0000 (UTC) From: Ram Kishore Vegesna <ram@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r334657 - head/sys/dev/ocs_fc Message-ID: <201806051505.w55F5QHX023703@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ram Date: Tue Jun 5 15:05:26 2018 New Revision: 334657 URL: https://svnweb.freebsd.org/changeset/base/334657 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 MFC after: 3 days Modified: head/sys/dev/ocs_fc/ocs_mgmt.c Modified: head/sys/dev/ocs_fc/ocs_mgmt.c ============================================================================== --- head/sys/dev/ocs_fc/ocs_mgmt.c Tue Jun 5 14:47:13 2018 (r334656) +++ head/sys/dev/ocs_fc/ocs_mgmt.c Tue Jun 5 15:05:26 2018 (r334657) @@ -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?201806051505.w55F5QHX023703>