aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netfront.c
diff options
context:
space:
mode:
authorHenry Martin <[email protected]>2025-04-18 02:38:14 +0000
committerJakub Kicinski <[email protected]>2025-04-22 00:09:11 +0000
commitfa8fd315127ca48c65e7e6692a84ffcf3d07168e (patch)
tree497bd25db43cbf4007b6f5b2df9dc936d775d91a /drivers/net/xen-netfront.c
parentnet/mlx5: Fix null-ptr-deref in mlx5_create_{inner_,}ttc_table() (diff)
downloadkernel-fa8fd315127ca48c65e7e6692a84ffcf3d07168e.tar.gz
kernel-fa8fd315127ca48c65e7e6692a84ffcf3d07168e.zip
net/mlx5: Move ttc allocation after switch case to prevent leaks
Relocate the memory allocation for ttc table after the switch statement that validates params->ns_type in both mlx5_create_inner_ttc_table() and mlx5_create_ttc_table(). This ensures memory is only allocated after confirming valid input, eliminating potential memory leaks when invalid ns_type cases occur. Fixes: 137f3d50ad2a ("net/mlx5: Support matching on l4_type for ttc_table") Signed-off-by: Henry Martin <[email protected]> Reviewed-by: Michal Swiatkowski <[email protected]> Reviewed-by: Mark Bloch <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/xen-netfront.c')
0 files changed, 0 insertions, 0 deletions