KSPP / linux

Linux kernel source tree (Kernel Self Protection Project)
https://kernsec.org/wiki/index.php/Kernel_Self_Protection_Project
Other
80 stars 5 forks source link

Replace one-element array flex-array member in drivers/scsi/lpfc/lpfc_hw.h #295

Closed GustavoARSilva closed 1 year ago

GustavoARSilva commented 1 year ago
diff --git a/drivers/scsi/lpfc/lpfc_hw.h b/drivers/scsi/lpfc/lpfc_hw.h
index 19b2d2754f32..b2123ec4df88 100644
--- a/drivers/scsi/lpfc/lpfc_hw.h
+++ b/drivers/scsi/lpfc/lpfc_hw.h
@@ -1415,12 +1415,12 @@ struct app_id_object {

 struct lpfc_vmid_rapp_ident_list {
        uint32_t no_of_objects;
-       struct entity_id_object obj[1];
+       struct entity_id_object obj[];
 };

 struct lpfc_vmid_dapp_ident_list {
        uint32_t no_of_objects;
-       struct entity_id_object obj[1];
+       struct entity_id_object obj[];
 };