From: David Laight Subject: RE: [PATCH] bfa: remove VLA Date: Thu, 15 Mar 2018 11:40:05 +0000 Message-ID: <32130f556f09408686626c50c70b39c9@AcuMS.aculab.com> References: <20180308213841.13807-1-steve@sk2.org> In-Reply-To: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 To: "'Martin K. Petersen'" , Stephen Kitt Cc: "hare@suse.com" , "linux-scsi@vger.kernel.org" , "kernel-hardening@lists.openwall.com" , "linux-kernel@vger.kernel.org" List-ID: > > - sizeof(wwn_t[iocmd->nports])) !=3D BFA_STATUS_OK) { > > + sizeof(wwn_t) * iocmd->nports) !=3D BFA_STATUS_OK) { >=20 > These parentheses made me blurry eyed but it's actually OK. iocmd->nports * sizeof(wwn_t)) !=3D BFA_STATUS_OK) { is easier to focus on :-) David