ether82557: panic() if receive buffer allocation fails on init
This commit is contained in:
parent
f7ffca5c1c
commit
aedb35af2c
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue