From patchwork Sun Nov 10 15:17:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thorsten Blum X-Patchwork-Id: 13869926 Received: from out-184.mta1.migadu.com (out-184.mta1.migadu.com [95.215.58.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8CA34132103 for ; Sun, 10 Nov 2024 15:22:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.184 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731252150; cv=none; b=aXuwovBHiLimm66xoszkOLg7+F9cxwaI2Tzk/ZOUliBkNUtzumySRQ6rwwf5HTuyX7E1Vc/lsu5dW8VSAkNEiYccjpnvtWctAl9q/WFqbTRG6F39Y9dU810yuDRSKU1yhGcnsCtbJVqHkQ1MwuMLVdVFZmH1K1AKO8zbVAZZz/8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731252150; c=relaxed/simple; bh=XZveZfdfEe7GHPTaQ+DcTl1LvudeUki6avQSeQ+cQak=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YLxOKPL6C1EHZCHPzH67+kkcP8P7TDtQy1QbKGG0Yim9cPThBhHZeZ3uJvkl9pXGISN6hk49jcOvOQUWsjs9tpMlHGL0V/fK65VXoFxsTzwFVqsXQbJG3n+b8JcnksqPL/36CB3Si12X/DTtiHQUDn8Eb0St91t8fMF6v/oOooE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=wQl8MDRS; arc=none smtp.client-ip=95.215.58.184 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="wQl8MDRS" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1731252139; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=FwUaqcMHBb2izLMC05xKkduvRf6O7Ag76Km51G1JrLE=; b=wQl8MDRSzbIH8ND6WyNyqtTXdUzSfo+PUp4KdZDyxld8wDdFe1c83gKvO2b5sdrNaDDxUo O9NXcnrCqRclt7deb13hioUDjEQQSMflvAmKB5Phk4eUtoHX+DYYsOc2CEiYMvK7KxcT7c 5SktcsKV9soCQL+I7ktPmw03ZXMGmEM= From: Thorsten Blum To: Lee Duncan , Chris Leech , Mike Christie , "James E.J. Bottomley" , "Martin K. Petersen" Cc: linux-hardening@vger.kernel.org, Thorsten Blum , open-iscsi@googlegroups.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] scsi: Replace zero-length array with flexible array member Date: Sun, 10 Nov 2024 16:17:49 +0100 Message-ID: <20241110151749.3311-2-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-hardening@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT Replace the deprecated zero-length array with a modern flexible array member in the struct iscsi_bsg_host_vendor_reply. Link: https://github.com/KSPP/linux/issues/78 Signed-off-by: Thorsten Blum --- include/scsi/scsi_bsg_iscsi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/scsi/scsi_bsg_iscsi.h b/include/scsi/scsi_bsg_iscsi.h index 9b1f0f424a79..df8083f12119 100644 --- a/include/scsi/scsi_bsg_iscsi.h +++ b/include/scsi/scsi_bsg_iscsi.h @@ -59,7 +59,7 @@ struct iscsi_bsg_host_vendor { */ struct iscsi_bsg_host_vendor_reply { /* start of vendor response area */ - uint32_t vendor_rsp[0]; + uint32_t vendor_rsp[]; };