summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2006-11-01 13:23:07 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2006-11-01 13:23:07 +0000
commit019492cf8050d6aec41096d7c451e051d7512431 (patch)
tree39aede5714ff2bc10f57386cb68b34994f974ee0 /sys/dev/pci
parent6cab4d99451e8a6b1c22fbaff2633bf506eff5bd (diff)
Use correct error message as return value. OK dlg@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/if_vic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_vic.c b/sys/dev/pci/if_vic.c
index 56734d63358..2d8b5e6ce28 100644
--- a/sys/dev/pci/if_vic.c
+++ b/sys/dev/pci/if_vic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vic.c,v 1.15 2006/11/01 10:21:57 dlg Exp $ */
+/* $OpenBSD: if_vic.c,v 1.16 2006/11/01 13:23:06 claudio Exp $ */
/*
* Copyright (c) 2006 Reyk Floeter <reyk@openbsd.org>
@@ -793,7 +793,7 @@ vic_encap(struct vic_softc *sc, struct mbuf *m)
MCLGET(m0, M_DONTWAIT);
if (!(m0->m_flags & M_EXT)) {
m_freem(m0);
- return (E2BIG);
+ return (ENOBUFS);
}
}
m_copydata(m, 0, m->m_pkthdr.len, mtod(m0, caddr_t));