aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igc/igc_ptp.c
diff options
context:
space:
mode:
authorMichal Swiatkowski <[email protected]>2025-04-04 10:54:21 +0000
committerTony Nguyen <[email protected]>2025-04-29 21:28:24 +0000
commit8a558cbda51bef09773c72bf74a32047479110c7 (patch)
tree8428e0b369afc7298e985a4485a807cac43bddf9 /drivers/net/ethernet/intel/igc/igc_ptp.c
parentMerge branch 'intel-net-queue-100GbE' (diff)
downloadkernel-8a558cbda51bef09773c72bf74a32047479110c7.tar.gz
kernel-8a558cbda51bef09773c72bf74a32047479110c7.zip
idpf: fix potential memory leak on kcalloc() failure
In case of failing on rss_data->rss_key allocation the function is freeing vport without freeing earlier allocated q_vector_idxs. Fix it. Move from freeing in error branch to goto scheme. Fixes: d4d558718266 ("idpf: initialize interrupts and enable vport") Reviewed-by: Pavan Kumar Linga <[email protected]> Reviewed-by: Aleksandr Loktionov <[email protected]> Suggested-by: Pavan Kumar Linga <[email protected]> Signed-off-by: Michal Swiatkowski <[email protected]> Reviewed-by: Simon Horman <[email protected]> Tested-by: Samuel Salin <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_ptp.c')
0 files changed, 0 insertions, 0 deletions