summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/marvell/octeontx2/af/npc_profile.h
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2021-09-28 21:31:07 +0200
committerJakub Kicinski <kuba@kernel.org>2021-09-30 03:56:53 +0200
commit69508d43334e3b09c344f662272bcf24a5b508ed (patch)
tree750402615914273822bdfbb85243e0555a421e1c /drivers/net/ethernet/marvell/octeontx2/af/npc_profile.h
parentdevlink: Add missed notifications iterators (diff)
downloadlinux-69508d43334e3b09c344f662272bcf24a5b508ed.tar.xz
linux-69508d43334e3b09c344f662272bcf24a5b508ed.zip
net_sched: Use struct_size() and flex_array_size() helpers
Make use of the struct_size() and flex_array_size() helpers instead of an open-coded version, in order to avoid any potential type mistakes or integer overflows that, in the worse scenario, could lead to heap overflows. Link: https://github.com/KSPP/linux/issues/160 Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Link: https://lore.kernel.org/r/20210928193107.GA262595@embeddedor Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/marvell/octeontx2/af/npc_profile.h')
0 files changed, 0 insertions, 0 deletions