OpenCloudOS-Kernel/drivers/net/ethernet/microsoft/mana
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
..
Makefile
gdma.h
gdma_main.c
hw_channel.c net: mana: Use int to check the return value of mana_gd_poll_cq() 2021-04-23 13:16:29 -07:00
hw_channel.h
mana.h
mana_en.c net: mana: Use struct_size() in kzalloc() 2021-05-13 15:58:46 -07:00
mana_ethtool.c
shm_channel.c
shm_channel.h