]> git.baikalelectronics.ru Git - kernel.git/commit
net/ipv4/igmp: Use struct_size() helper
authorGustavo A. R. Silva <gustavoars@kernel.org>
Wed, 4 Aug 2021 21:18:50 +0000 (16:18 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Aug 2021 10:46:42 +0000 (11:46 +0100)
commita2f50c1b4c4140a92ea76e6e5677e3f4532b7679
treeb58331b1accec36c626b5a27d17a796a7021ac3c
parenta2386e0b98ec319ce01c7f170793fdbe82ad759c
net/ipv4/igmp: Use struct_size() helper

Replace IP_SFLSIZE() with struct_size() helper in order to avoid any
potential type mistakes or integer overflows that, in the worst
scenario, could lead to heap overflows.

Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/igmp.h
net/ipv4/igmp.c