summaryrefslogtreecommitdiff
path: root/sys/dev/ic/rtl81x9.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-06-07 18:32:52 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-06-07 18:32:52 +0000
commit5968177c35a67770c8b21df245b383e9fbc1cf02 (patch)
tree5a51cc2636091f43f0748b372bab759fdb2c4cbd /sys/dev/ic/rtl81x9.c
parent11d4c063c703ab42093bfc792e6269f3680d011c (diff)
Don't try to send a packet we don't have if rl_encap fails.
Tested by noone, the bug reporter didn't respond. could fix kernel/2731
Diffstat (limited to 'sys/dev/ic/rtl81x9.c')
-rw-r--r--sys/dev/ic/rtl81x9.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ic/rtl81x9.c b/sys/dev/ic/rtl81x9.c
index 49dad9cad16..764bc2ff5c2 100644
--- a/sys/dev/ic/rtl81x9.c
+++ b/sys/dev/ic/rtl81x9.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtl81x9.c,v 1.14 2002/03/14 01:26:55 millert Exp $ */
+/* $OpenBSD: rtl81x9.c,v 1.15 2002/06/07 18:32:51 art Exp $ */
/*
* Copyright (c) 1997, 1998
@@ -906,7 +906,8 @@ void rl_start(ifp)
break;
/* Pack the data into the descriptor. */
- rl_encap(sc, m_head);
+ if (rl_encap(sc, m_head))
+ break;
pkts++;
#if NBPFILTER > 0