red-...@lists.osuosl.org;
> netdev@vger.kernel.org; linux-ker...@vger.kernel.org;
> b...@vger.kernel.org
> Subject: [PATCH] ice: Fix memleak in ice_set_ringparam
>
> When kcalloc() on rx_rings fails, we should free tx_rings
> and xdp_rings to prevent memleak. Similarly, when
> ice_al
When kcalloc() on rx_rings fails, we should free tx_rings
and xdp_rings to prevent memleak. Similarly, when
ice_alloc_rx_bufs() fails, we should free xdp_rings.
Signed-off-by: Dinghao Liu
---
drivers/net/ethernet/intel/ice/ice_ethtool.c | 13 +++--
1 file changed, 11 insertions(+), 2 del