mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 00:20:32 +00:00
ixgbe: Fix memleak in ixgbe_configure_clsu32
When ixgbe_fdir_write_perfect_filter_82599() fails, input allocated by kzalloc() has not been freed, which leads to memleak. Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn> Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de> Tested-by: Tony Brelinski <tonyx.brelinski@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
This commit is contained in:
parent
d785e1fec6
commit
7a76638163
1 changed files with 4 additions and 2 deletions
|
@ -9565,8 +9565,10 @@ static int ixgbe_configure_clsu32(struct ixgbe_adapter *adapter,
|
||||||
ixgbe_atr_compute_perfect_hash_82599(&input->filter, mask);
|
ixgbe_atr_compute_perfect_hash_82599(&input->filter, mask);
|
||||||
err = ixgbe_fdir_write_perfect_filter_82599(hw, &input->filter,
|
err = ixgbe_fdir_write_perfect_filter_82599(hw, &input->filter,
|
||||||
input->sw_idx, queue);
|
input->sw_idx, queue);
|
||||||
if (!err)
|
if (err)
|
||||||
ixgbe_update_ethtool_fdir_entry(adapter, input, input->sw_idx);
|
goto err_out_w_lock;
|
||||||
|
|
||||||
|
ixgbe_update_ethtool_fdir_entry(adapter, input, input->sw_idx);
|
||||||
spin_unlock(&adapter->fdir_perfect_lock);
|
spin_unlock(&adapter->fdir_perfect_lock);
|
||||||
|
|
||||||
if ((uhtid != 0x800) && (adapter->jump_tables[uhtid]))
|
if ((uhtid != 0x800) && (adapter->jump_tables[uhtid]))
|
||||||
|
|
Loading…
Reference in a new issue