Gustavo A. R. Silva 10cdc794da net: mana: Use struct_size() helper in mana_gd_create_dma_region()
Make use of the struct_size() helper instead of an open-coded version,
in order to avoid any potential type mistakes or integer overflows that,
in the worst scenario, could lead to heap overflows.

Also, address the following sparse warnings:
drivers/net/ethernet/microsoft/mana/gdma_main.c:677:24: warning: using sizeof on a flexible structure

Link: https://github.com/KSPP/linux/issues/174
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Reviewed-by: Dexuan Cui <decui@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-01-25 12:59:18 +00:00
..
2022-01-19 11:15:19 +02:00
2022-01-16 08:08:11 +02:00
2022-01-18 14:03:34 +02:00
2022-01-16 06:52:38 +02:00
2022-01-16 15:53:00 +02:00
2022-01-12 15:46:11 -08:00
2022-01-11 11:35:28 -08:00
2022-01-12 11:11:34 -08:00
2022-01-16 08:08:11 +02:00
2022-01-12 10:35:23 -08:00
2022-01-16 08:08:11 +02:00
2022-01-16 08:08:11 +02:00
2022-01-11 11:26:57 -08:00
2022-01-10 12:58:46 -08:00
2022-01-12 15:46:11 -08:00
2022-01-14 14:55:38 +01:00
2022-01-10 08:13:52 -08:00
2022-01-14 14:55:38 +01:00
2021-12-29 10:54:50 +01:00
2022-01-16 06:52:38 +02:00
2022-01-03 13:44:38 +01:00
2022-01-17 08:07:57 +02:00