Message ID | 20230703114851.1194510-1-arnd@kernel.org |
---|---|
State | New |
Headers | show |
Series | scsi: aacraid: avoid -Warray-bounds warning | expand |
Arnd, > The one-element array in aac_aifcmd is actually meant as a flexible > array, and causes an overflow warning that can be avoided using the > normal flex arrays: Applied to 6.5/scsi-staging, thanks!
diff --git a/drivers/scsi/aacraid/aacraid.h b/drivers/scsi/aacraid/aacraid.h index 7c6efde75da66..73b6ac0c01f54 100644 --- a/drivers/scsi/aacraid/aacraid.h +++ b/drivers/scsi/aacraid/aacraid.h @@ -2618,7 +2618,7 @@ struct aac_hba_info { struct aac_aifcmd { __le32 command; /* Tell host what type of notify this is */ __le32 seqnum; /* To allow ordering of reports (if necessary) */ - u8 data[1]; /* Undefined length (from kernel viewpoint) */ + u8 data[]; /* Undefined length (from kernel viewpoint) */ }; /**