summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/9/pc/ether82557.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/src/9/pc/ether82557.c b/sys/src/9/pc/ether82557.c
index 8a2bd9e4c..c16d05beb 100644
--- a/sys/src/9/pc/ether82557.c
+++ b/sys/src/9/pc/ether82557.c
@@ -783,6 +783,8 @@ ctlrinit(Ctlr* ctlr)
link = NullPointer;
for(i = 0; i < Nrfd; i++){
bp = rfdalloc(link);
+ if(bp == nil)
+ panic("i82557: can't allocate rfd buffer");
if(ctlr->rfdhead == nil)
ctlr->rfdtail = bp;
bp->next = ctlr->rfdhead;