summaryrefslogtreecommitdiffstats
path: root/sys/dev/en
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-05-31 19:01:08 +0000
committerphk <phk@FreeBSD.org>2003-05-31 19:01:08 +0000
commitae05fc52657889cfca90990d25eef06e7c59c2f7 (patch)
tree34b257ee658eb08944aa2a75272788665402ed48 /sys/dev/en
parentf06c9aba1b605734b0229e580c382c5050e1d318 (diff)
downloadFreeBSD-src-ae05fc52657889cfca90990d25eef06e7c59c2f7.zip
FreeBSD-src-ae05fc52657889cfca90990d25eef06e7c59c2f7.tar.gz
Fix off-by-one error in range check of VC index.
Found by: FlexeLint
Diffstat (limited to 'sys/dev/en')
-rw-r--r--sys/dev/en/midway.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/en/midway.c b/sys/dev/en/midway.c
index 52eb300..24e51b5 100644
--- a/sys/dev/en/midway.c
+++ b/sys/dev/en/midway.c
@@ -986,7 +986,7 @@ en_start(struct ifnet *ifp)
if (ATM_PH_FLAGS(ap) & ATM_PH_AAL5)
flags |= TX_AAL5;
- if (ATM_PH_VPI(ap) != 0 || vci > MID_N_VC) {
+ if (ATM_PH_VPI(ap) != 0 || vci >= MID_N_VC) {
DBG(sc, TX, ("output vpi=%u, vci=%u -- drop",
ATM_PH_VPI(ap), vci));
m_freem(m);
OpenPOWER on IntegriCloud