summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/bluetooth
diff options
context:
space:
mode:
authoremax <emax@FreeBSD.org>2005-04-06 22:09:32 +0000
committeremax <emax@FreeBSD.org>2005-04-06 22:09:32 +0000
commitd2c3ee671ea7d6f6014adccbd81750924512281a (patch)
treeea8c82160fd11f919e8359ecc50a94fa15b11fa2 /sys/netgraph/bluetooth
parent3ca52382ee57fa71974232af607ce77c438fa8fe (diff)
downloadFreeBSD-src-d2c3ee671ea7d6f6014adccbd81750924512281a.zip
FreeBSD-src-d2c3ee671ea7d6f6014adccbd81750924512281a.tar.gz
Correct typo that could cause FIFO overflow.
PR: kern/78431 MFC after: 3 days
Diffstat (limited to 'sys/netgraph/bluetooth')
-rw-r--r--sys/netgraph/bluetooth/drivers/bt3c/ng_bt3c_pccard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netgraph/bluetooth/drivers/bt3c/ng_bt3c_pccard.c b/sys/netgraph/bluetooth/drivers/bt3c/ng_bt3c_pccard.c
index e1f7532..376b3af 100644
--- a/sys/netgraph/bluetooth/drivers/bt3c/ng_bt3c_pccard.c
+++ b/sys/netgraph/bluetooth/drivers/bt3c/ng_bt3c_pccard.c
@@ -1097,7 +1097,7 @@ bt3c_send(node_p node, hook_p hook, void *arg, int completed)
while (m != NULL) {
len = min((BT3C_FIFO_SIZE - wrote), m->m_len);
- for (i = 0; i < m->m_len; i++)
+ for (i = 0; i < len; i++)
bt3c_write_data(sc, m->m_data[i]);
wrote += len;
OpenPOWER on IntegriCloud