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

Use DECLARE_FLEX_ARRAY() helper in drivers/net/can/usb/ucan.c #214

Closed GustavoARSilva closed 1 year ago

GustavoARSilva commented 1 year ago
diff -u -p ./drivers/net/can/usb/ucan.c /tmp/nothing/drivers/net/can/usb/ucan.c
--- ./drivers/net/can/usb/ucan.c
+++ /tmp/nothing/drivers/net/can/usb/ucan.c
@@ -245,7 +245,6 @@ struct ucan_message_in {
                /* CAN transmission complete
                 * (type == UCAN_IN_TX_COMPLETE)
                 */
-               struct ucan_tx_complete_entry_t can_tx_complete_msg[0];
        } __aligned(0x4) msg;
 } __packed __aligned(0x4);