mirror-linux/drivers/net/ethernet/intel
Michal Swiatkowski 6850deb611 libie: prevent memleak in fwlog code
All cmd_buf buffers are allocated and need to be freed after usage.
Add an error unwinding path that properly frees these buffers.

The memory leak happens whenever fwlog configuration is changed. For
example:

$echo 256K > /sys/kernel/debug/ixgbe/0000\:32\:00.0/fwlog/log_size

Fixes: 96a9a9341c ("ice: configure FW logging")
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Rinitha S <sx.rinitha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2026-03-17 14:12:36 -07:00
..
e1000 e1000/e1000e: Fix leak in DMA error cleanup 2026-03-10 13:02:54 -07:00
e1000e e1000/e1000e: Fix leak in DMA error cleanup 2026-03-10 13:02:54 -07:00
fm10k Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
i40e i40e: fix src IP mask checks and memcpy argument names in cloud filter 2026-03-10 13:02:45 -07:00
iavf iavf: fix VLAN filter lost on add/delete race 2026-03-17 13:48:02 -07:00
ice drivers: net: ice: fix devlink parameters get without irdma 2026-03-10 09:08:31 -07:00
idpf libeth, idpf: use truesize as XDP RxQ info frag_size 2026-03-05 08:02:05 -08:00
igb igb: Fix trigger of incorrect irq in igb_xsk_wakeup 2026-03-03 13:06:05 -08:00
igbvf Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
igc igc: fix page fault in XDP TX timestamps handling 2026-03-17 13:28:55 -07:00
ixgbe Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
ixgbevf Merge branch '200GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/net-queue 2026-02-28 08:43:56 -08:00
libeth libeth, idpf: use truesize as XDP RxQ info frag_size 2026-03-05 08:02:05 -08:00
libie libie: prevent memleak in fwlog code 2026-03-17 14:12:36 -07:00
Kconfig Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2025-11-06 09:27:40 -08:00
Makefile libie: fix linking with libie_{adminq,fwlog} when CONFIG_LIBIE=n 2025-09-16 16:18:45 -07:00
e100.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00