aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_output.c
diff options
context:
space:
mode:
authorAlexander Lobakin <[email protected]>2023-07-28 15:52:07 +0000
committerTony Nguyen <[email protected]>2023-08-16 16:14:14 +0000
commitb0654e64dbaf62f565b5f2b4fbd92202e88dcba3 (patch)
tree7b1eb8635e3d57e4f17bd3492f0a7865adf6e736 /net/ipv4/tcp_output.c
parentvirtchnl: fix fake 1-elem arrays in structures allocated as `nents + 1` (diff)
downloadkernel-b0654e64dbaf62f565b5f2b4fbd92202e88dcba3.tar.gz
kernel-b0654e64dbaf62f565b5f2b4fbd92202e88dcba3.zip
virtchnl: fix fake 1-elem arrays for structures allocated as `nents`
Finally, fix 3 structures which are allocated technically correctly, i.e. the calculated size equals to the one that struct_size() would return, except for sizeof(). For &virtchnl_vlan_filter_list_v2, use the same approach when there are no enough space as taken previously for &virtchnl_vlan_filter_list, i.e. let the maximum size be calculated automatically instead of trying to guestimate it using maths. Signed-off-by: Alexander Lobakin <[email protected]> Reviewed-by: Kees Cook <[email protected]> Tested-by: Rafal Romanowski <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions