Daniele Palmas <dnlplm@xxxxxxxxx> writes: > Free the unused skb when not ip packets arrive. > > Fixes: c6adf77953bc ("net: usb: qmi_wwan: add qmap mux protocol support") > Signed-off-by: Daniele Palmas <dnlplm@xxxxxxxxx> > --- > drivers/net/usb/qmi_wwan.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/net/usb/qmi_wwan.c b/drivers/net/usb/qmi_wwan.c > index 386d62769ded..cfda32047cff 100644 > --- a/drivers/net/usb/qmi_wwan.c > +++ b/drivers/net/usb/qmi_wwan.c > @@ -201,6 +201,7 @@ static int qmimux_rx_fixup(struct usbnet *dev, struct sk_buff *skb) > break; > default: > /* not ip - do not know what to do */ > + kfree_skb(skbn); > goto skip; > } Makes sense. Acked-by: Bjørn Mork <bjorn@xxxxxxx>