mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-12 20:35:23 +02:00
net: usb: qmi_wwan: fix memory leak for not ip packets
[ Upstream commit7ab107544b
] Free the unused skb when not ip packets arrive. Fixes:c6adf77953
("net: usb: qmi_wwan: add qmap mux protocol support") Signed-off-by: Daniele Palmas <dnlplm@gmail.com> Acked-by: Bjørn Mork <bjorn@mork.no> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
1407be30fc
commit
f2c353227d
|
@ -201,6 +201,7 @@ static int qmimux_rx_fixup(struct usbnet *dev, struct sk_buff *skb)
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
/* not ip - do not know what to do */
|
/* not ip - do not know what to do */
|
||||||
|
kfree_skb(skbn);
|
||||||
goto skip;
|
goto skip;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user