Skip to content

Commit 7b91659

Browse files
MaochenWang1henrikbrixandersen
authored andcommitted
net: igmp: Fix double unref of igmp packet
If send the igmp packet when lower interface is down, the packet will be freed twice and show error log. Remove the net_pkt_unref in igmp_send(), and let the caller free it. Signed-off-by: Maochen Wang <[email protected]>
1 parent fb54eb5 commit 7b91659

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

subsys/net/ip/igmp.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,6 @@ static int igmp_send(struct net_pkt *pkt)
255255
ret = net_send_data(pkt);
256256
if (ret < 0) {
257257
net_stats_update_ipv4_igmp_drop(net_pkt_iface(pkt));
258-
net_pkt_unref(pkt);
259258
return ret;
260259
}
261260

0 commit comments

Comments
 (0)