aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-perl.c
diff options
context:
space:
mode:
authorPrzemyslaw Patynowski <[email protected]>2022-06-24 17:33:01 -0700
committerTony Nguyen <[email protected]>2022-07-18 09:36:40 -0700
commita9f49e0060301a9bfebeca76739158d0cf91cdf6 (patch)
treebae38de96c384ef1b70778407734757fdce8de4e /tools/perf/util/scripting-engines/trace-event-perl.c
parent4635fd3a9d77581498f34ab9a7e4bcc211bf0a4c (diff)
iavf: Fix handling of dummy receive descriptors
Fix memory leak caused by not handling dummy receive descriptor properly. iavf_get_rx_buffer now sets the rx_buffer return value for dummy receive descriptors. Without this patch, when the hardware writes a dummy descriptor, iavf would not free the page allocated for the previous receive buffer. This is an unlikely event but can still happen. [Jesse: massaged commit message] Fixes: efa14c398582 ("iavf: allow null RX descriptors") Signed-off-by: Przemyslaw Patynowski <[email protected]> Signed-off-by: Jesse Brandeburg <[email protected]> Tested-by: Konrad Jankowski <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions