KSPP / linux

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

Use DECLARE_FLEX_ARRAY() helper in drivers/net/ethernet/mellanox/mlxfw/mlxfw_mfa2_format.h #285

Closed GustavoARSilva closed 1 year ago

GustavoARSilva commented 1 year ago
diff -u -p a/drivers/net/ethernet/mellanox/mlxfw/mlxfw_mfa2_format.h b/drivers/net/ethernet/mellanox/mlxfw/mlxfw_mfa2_format.h
--- a/drivers/net/ethernet/mellanox/mlxfw/mlxfw_mfa2_format.h
+++ b/drivers/net/ethernet/mellanox/mlxfw/mlxfw_mfa2_format.h
@@ -44,7 +44,7 @@ MLXFW_MFA2_TLV(multi, struct mlxfw_mfa2_
               MLXFW_MFA2_TLV_MULTI_PART);

 struct mlxfw_mfa2_tlv_psid {
-       u8 psid[0];
+       u8 psid[];
 } __packed;

 MLXFW_MFA2_TLV_VARSIZE(psid, struct mlxfw_mfa2_tlv_psid,