Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Bluetooth: ISO: Don't initiate CIS connections if there are no buffers

If the controller has no buffers left return -ENOBUFF to indicate that
iso_cnt might be out of sync.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

+7
+7
net/bluetooth/iso.c
··· 458 458 goto unlock; 459 459 } 460 460 461 + /* Check if there are available buffers for output/TX. */ 462 + if (iso_pi(sk)->qos.ucast.out.sdu && !hci_iso_count(hdev) && 463 + (hdev->iso_pkts && !hdev->iso_cnt)) { 464 + err = -ENOBUFS; 465 + goto unlock; 466 + } 467 + 461 468 /* Just bind if DEFER_SETUP has been set */ 462 469 if (test_bit(BT_SK_DEFER_SETUP, &bt_sk(sk)->flags)) { 463 470 hcon = hci_bind_cis(hdev, &iso_pi(sk)->dst,