diff options
| author | Linyu Yuan <[email protected]> | 2021-06-16 23:32:32 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-06-17 18:30:25 +0000 |
| commit | c3b26fdf1b32f91c7a3bc743384b4a298ab53ad7 (patch) | |
| tree | cf74e5adb2a3d2e3ef625b3b8b7c4be188789128 /tools/perf/scripts/python/check-perf-trace.py | |
| parent | Merge tag 'mlx5-fixes-2021-06-16' of git://git.kernel.org/pub/scm/linux/kerne... (diff) | |
| download | kernel-c3b26fdf1b32f91c7a3bc743384b4a298ab53ad7.tar.gz kernel-c3b26fdf1b32f91c7a3bc743384b4a298ab53ad7.zip | |
net: cdc_eem: fix tx fixup skb leak
when usbnet transmit a skb, eem fixup it in eem_tx_fixup(),
if skb_copy_expand() failed, it return NULL,
usbnet_start_xmit() will have no chance to free original skb.
fix it by free orginal skb in eem_tx_fixup() first,
then check skb clone status, if failed, return NULL to usbnet.
Fixes: 9f722c0978b0 ("usbnet: CDC EEM support (v5)")
Signed-off-by: Linyu Yuan <[email protected]>
Reviewed-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions
