Skip to content

scsi: lpfc: Replace one-element array with flexible-array member

Gustavo A. R. Silva linux-hardening linux-scsi lkml 1 version Applied

Status from this message: Applied to 6.5/scsi-staging, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 10 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2scsi: lpfc: Replace one-element array with flexible-array memberdrivers/scsi/lpfc/lpfc_ct.c drivers/scsi/lpfc/lpfc_hw.h+6 -46 replies
2/2scsi: lpfc: Use struct_size() helperdrivers/scsi/lpfc/lpfc_ct.c+2 -43 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchKees Cook
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2][next] scsi: lpfc: Replace one-element array with flexible-array member

Hi!

This small series aims to replace a one-element array with a flexible-array member in a couple of structures.

This helps with the ongoing efforts to tighten the FORTIFY_SOURCE routines on memcpy() and help us make progress towards globally enabling -fstrict-flex-arrays=3 [1].

Gustavo A. R. Silva (2):
scsi: lpfc: Replace one-element array with flexible-array member
scsi: lpfc: Use struct_size() helper

 drivers/scsi/lpfc/lpfc_ct.c | 4 ++--
 drivers/scsi/lpfc/lpfc_hw.h | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
Signature · 1 line
2.34.1