linux/drivers/net/ethernet/intel/libie
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
..
adminq.c libie: fix string names for AQ error codes 2025-09-24 16:58:54 -07:00
fwlog.c libie: prevent memleak in fwlog code 2026-03-17 14:12:36 -07:00
Kconfig ice, libie: move fwlog code to libie 2025-09-11 12:10:47 -07:00
Makefile ice, libie: move fwlog code to libie 2025-09-11 12:10:47 -07:00
rx.c libeth, libie: clean symbol exports up a little 2025-06-16 11:40:14 -07:00