- Reset the free ent to NULL if we have consumed the last free entry. This
fixes a problem where we would overwrite old data if we ran out of free entries. Submitted by: sam Approved by: re (scottl)
This commit is contained in:
parent
d39d651258
commit
30fd5d085d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=115308
@ -428,6 +428,8 @@ alq_get(struct alq *alq, int waitok)
|
||||
aln = ale->ae_next;
|
||||
if ((aln->ae_flags & AE_VALID) == 0)
|
||||
alq->aq_entfree = aln;
|
||||
else
|
||||
alq->aq_entfree = NULL;
|
||||
} else
|
||||
ALQ_UNLOCK(alq);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user