ether83815: dont raise error() from etherreset
can't raise error() without process context. use panic() instead.
This commit is contained in:
parent
096cf143bd
commit
f7ffca5c1c
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue