OpenCloudOS-Kernel/drivers/net/ethernet/microsoft
Gustavo A. R. Silva ea89c862f0 net: mana: Use struct_size() in kzalloc()
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.

This code was detected with the help of Coccinelle and, audited and
fixed manually.

Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-05-13 15:58:46 -07:00
..
mana net: mana: Use struct_size() in kzalloc() 2021-05-13 15:58:46 -07:00
Kconfig net: mana: fix PCI_HYPERV dependency 2021-04-22 13:22:28 -07:00
Makefile