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
1 changed files with 1 additions and 1 deletions
|
@ -644,7 +644,7 @@ ctlrinit(Ether* ether)
|
||||||
for(des = ctlr->rdr; des < &ctlr->rdr[ctlr->nrdr]; des++){
|
for(des = ctlr->rdr; des < &ctlr->rdr[ctlr->nrdr]; des++){
|
||||||
des->bp = iallocb(Rbsz);
|
des->bp = iallocb(Rbsz);
|
||||||
if(des->bp == nil)
|
if(des->bp == nil)
|
||||||
error(Enomem);
|
panic("ether83815: can't allocate receive buffer");
|
||||||
des->cmdsts = Rbsz;
|
des->cmdsts = Rbsz;
|
||||||
des->addr = PADDR(des->bp->rp);
|
des->addr = PADDR(des->bp->rp);
|
||||||
if(last != nil)
|
if(last != nil)
|
||||||
|
|
Loading…
Reference in a new issue