summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2013-06-01 01:40:56 +0200
committercinap_lenrek <cinap_lenrek@gmx.de>2013-06-01 01:40:56 +0200
commitf7ffca5c1c028e563f77106701d2cc5dfc2ef73b (patch)
tree1972f9f9f1fb8628b1c6021f3887787c5a6ea88f
parent096cf143bd486fd5f243515a1121db63bee64744 (diff)
downloadplan9front-f7ffca5c1c028e563f77106701d2cc5dfc2ef73b.tar.xz
ether83815: dont raise error() from etherreset
can't raise error() without process context. use panic() instead.
-rw-r--r--sys/src/9/pc/ether83815.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/pc/ether83815.c b/sys/src/9/pc/ether83815.c
index 597e34394..6b3a4cf73 100644
--- a/sys/src/9/pc/ether83815.c
+++ b/sys/src/9/pc/ether83815.c
@@ -644,7 +644,7 @@ ctlrinit(Ether* ether)
for(des = ctlr->rdr; des < &ctlr->rdr[ctlr->nrdr]; des++){
des->bp = iallocb(Rbsz);
if(des->bp == nil)
- error(Enomem);
+ panic("ether83815: can't allocate receive buffer");
des->cmdsts = Rbsz;
des->addr = PADDR(des->bp->rp);
if(last != nil)