Date: Thu, 14 Jun 2018 17:42:19 +0000 (UTC) From: Glen Barber <gjb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-releng@freebsd.org Subject: svn commit: r335163 - releng/11.2/sys/dev/ocs_fc Message-ID: <201806141742.w5EHgJ4X008774@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: gjb Date: Thu Jun 14 17:42:19 2018 New Revision: 335163 URL: https://svnweb.freebsd.org/changeset/base/335163 Log: 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 Modified: releng/11.2/sys/dev/ocs_fc/ocs_mgmt.c Directory Properties: releng/11.2/ (props changed) Modified: releng/11.2/sys/dev/ocs_fc/ocs_mgmt.c ============================================================================== --- releng/11.2/sys/dev/ocs_fc/ocs_mgmt.c Thu Jun 14 17:36:02 2018 (r335162) +++ releng/11.2/sys/dev/ocs_fc/ocs_mgmt.c Thu Jun 14 17:42:19 2018 (r335163) @@ -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?201806141742.w5EHgJ4X008774>