Skip to content
Commit a5781547 authored by Gaofeng Zhang's avatar Gaofeng Zhang Committed by Anas Nashif
Browse files

net: ipv4: Fix tx_pkts slab leak in send_ipv4_fragment



In the send_ipv4_fragment function, if net_pkt_get_data returns
fail, a tx_pkts slab leak will occur. If leak exceeds the
maximum number CONFIG_NET_PKT_TX_COUNT of tx_pkts slab, tx_ptks
will be used up, and the related modules(dhcp, ping and so on)
of net cannot alloc tx_pkt slab, and will sleep and can not
return successfully until available slab.
dhcp work or ping work cannot be executed beacause can't alloc
memory, and ping command cannot return, console also fails to
input commands, and the console hang problem occurs.

Signed-off-by: default avatarGaofeng Zhang <gaofeng.zhang@nxp.com>
parent a6a27aa4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment