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 <[email protected]> Acked-by: Bjørn Mork <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 268762d commit 7ab1075

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)