aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorXuan Zhuo <[email protected]>2022-08-04 14:32:48 +0800
committerDavid S. Miller <[email protected]>2022-08-08 09:43:55 +0100
commit7a542bee27c6a57e45c33cbbdc963325fd6493af (patch)
treeb3d733773dfec1008381c01806ff91c8ff04eb48 /scripts/gdb/linux/utils.py
parentac0dbed9ba4c38ed9b5fd3a43ee4bc1f48901a34 (diff)
virtio_net: fix memory leak inside XPD_TX with mergeable
When we call xdp_convert_buff_to_frame() to get xdpf, if it returns NULL, we should check if xdp_page was allocated by xdp_linearize_page(). If it is newly allocated, it should be freed here alone. Just like any other "goto err_xdp". Fixes: 44fa2dbd4759 ("xdp: transition into using xdp_frame for ndo_xdp_xmit") Signed-off-by: Xuan Zhuo <[email protected]> Acked-by: Jason Wang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions