Message ID | 20240402030445.48780-2-guoqing.jiang@canonical.com |
---|---|
State | New |
Headers | show |
Series | Fix UBSAN: array-index-out-of-bounds in drivers/net/hyperv/netvsc.c | expand |
diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index 3ac3974b3c78..5c66640ea8db 100644 --- a/include/linux/hyperv.h +++ b/include/linux/hyperv.h @@ -348,7 +348,7 @@ struct vmtransfer_page_packet_header { u8 sender_owns_set; u8 reserved; u32 range_cnt; - struct vmtransfer_page_range ranges[1]; + struct vmtransfer_page_range ranges[]; } __packed; struct vmgpadl_packet_header {