Skip to content

Commit 4dabce3

Browse files
committed
net: bt: Don't wait for buffer indefinatelly
This can actually block system critical threads like the syswq. Signed-off-by: Luiz Augusto von Dentz <[email protected]>
1 parent a1a17ea commit 4dabce3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/net/l2/bluetooth/bluetooth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ static struct net_buf *ipsp_alloc_buf(struct bt_l2cap_chan *chan)
252252
{
253253
NET_DBG("Channel %p requires buffer", chan);
254254

255-
return net_pkt_get_reserve_rx_data(K_FOREVER);
255+
return net_pkt_get_reserve_rx_data(BUF_TIMEOUT);
256256
}
257257

258258
static struct bt_l2cap_chan_ops ipsp_ops = {

0 commit comments

Comments
 (0)