summaryrefslogtreecommitdiff
path: root/kernel/trace/trace_clock.c
diff options
context:
space:
mode:
authorLinyu Yuan <linyyuan@codeaurora.org>2021-06-17 07:32:32 +0800
committerSasha Levin <sashal@kernel.org>2021-06-30 08:49:34 -0400
commitf12554b0ff639e74612cc01b3b4a049e098d2d65 (patch)
treee322a4dd0d249f66d9dd48cb7e09125db52400c7 /kernel/trace/trace_clock.c
parentc634ba0b4159838ff45a60d3a0ace3b4118077a5 (diff)
net: cdc_eem: fix tx fixup skb leak
[ Upstream commit c3b26fdf1b32f91c7a3bc743384b4a298ab53ad7 ] 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 <linyyuan@codeaurora.org> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'kernel/trace/trace_clock.c')
0 files changed, 0 insertions, 0 deletions