Skip to content

Commit 7ab1075

Browse files
dnlplmdavem330
authored andcommitted
net: usb: qmi_wwan: fix memory leak for not ip packets
Free the unused skb when not ip packets arrive. Fixes: c6adf77 ("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>
1 parent 268762d commit 7ab1075

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/net/usb/qmi_wwan.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ static int qmimux_rx_fixup(struct usbnet *dev, struct sk_buff *skb)
201201
break;
202202
default:
203203
/* not ip - do not know what to do */
204+
kfree_skb(skbn);
204205
goto skip;
205206
}
206207

0 commit comments

Comments
 (0)