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/wireless/ath/wil6210/wmi.h #288

Closed GustavoARSilva closed 1 year ago

GustavoARSilva commented 1 year ago
diff -u -p a/drivers/net/wireless/ath/wil6210/wmi.h b/drivers/net/wireless/ath/wil6210/wmi.h
--- a/drivers/net/wireless/ath/wil6210/wmi.h
+++ b/drivers/net/wireless/ath/wil6210/wmi.h
@@ -2763,7 +2763,7 @@ struct wmi_rf_xpm_write_result_event {

 /* WMI_TX_MGMT_PACKET_EVENTID */
 struct wmi_tx_mgmt_packet_event {
-       u8 payload[0];
+       u8 payload[];
 } __packed;

 /* WMI_RX_MGMT_PACKET_EVENTID */