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 <luiz.von.dentz@intel.com>
This commit is contained in:
Luiz Augusto von Dentz 2019-11-19 10:35:14 +02:00 committed by Johan Hedberg
parent f93de735d2
commit cbcbfee41d

View file

@ -252,7 +252,7 @@ static struct net_buf *ipsp_alloc_buf(struct bt_l2cap_chan *chan)
{
NET_DBG("Channel %p requires buffer", chan);
return net_pkt_get_reserve_rx_data(K_FOREVER);
return net_pkt_get_reserve_rx_data(BUF_TIMEOUT);
}
static struct bt_l2cap_chan_ops ipsp_ops = {