diff options
author | emax <emax@FreeBSD.org> | 2005-04-06 22:09:32 +0000 |
---|---|---|
committer | emax <emax@FreeBSD.org> | 2005-04-06 22:09:32 +0000 |
commit | d2c3ee671ea7d6f6014adccbd81750924512281a (patch) | |
tree | ea8c82160fd11f919e8359ecc50a94fa15b11fa2 /sys/netgraph/bluetooth/drivers | |
parent | 3ca52382ee57fa71974232af607ce77c438fa8fe (diff) | |
download | FreeBSD-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/drivers')
-rw-r--r-- | sys/netgraph/bluetooth/drivers/bt3c/ng_bt3c_pccard.c | 2 |
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; |