net: usb: qmi_wwan: fix memory leak for not ip packets
Subsystems (5)
PATCH 1/1 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]>
--- drivers/net/usb/qmi_wwan.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/usb/qmi_wwan.c +1 -0
@@ -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; }
Signature · 1 line
2.37.1
Quoted 13 lines · Daniele Palmas
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]>--- drivers/net/usb/qmi_wwan.c | 1 + 1 file changed, 1 insertion(+)drivers/net/usb/qmi_wwan.c +0
-0
drivers/net/usb/qmi_wwan.c static int qmimux_rx_fixup(struct usbnet *dev, struct sk_buff *skb) · line 206
Quoted 6 lines
drivers/net/usb/qmi_wwan.c +1
-0@@ -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 <[email protected]>
Quoted 4 lines · On Thu, 1 Aug 2024 15:55:12 +0200 Daniele Palmas wrote:
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]>
Applied, thanks!