diff options
author | Daniele Palmas <[email protected]> | 2024-08-01 15:55:12 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2024-08-05 11:11:31 +0100 |
commit | 7ab107544b777c3bd7feb9fe447367d8edd5b202 (patch) | |
tree | c63253f309354f85186618b67806497dbcfb0876 | |
parent | 268762d0bbe778952ebda77a9ae8b8b3b584ae61 (diff) |
net: usb: qmi_wwan: fix memory leak for not ip packets
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 <[email protected]>
Acked-by: Bjørn Mork <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
-rw-r--r-- | drivers/net/usb/qmi_wwan.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |