mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-15 06:42:51 +01:00
Add mutex locking for the call to replay_prune() in
replay_setsize(), since replay_prune() expects the rc_lock to be held when it is called. MFC after: 2 weeks
This commit is contained in:
parent
2b13785931
commit
d7dc2db434
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=211830
@ -90,8 +90,10 @@ void
|
||||
replay_setsize(struct replay_cache *rc, size_t newmaxsize)
|
||||
{
|
||||
|
||||
mtx_lock(&rc->rc_lock);
|
||||
rc->rc_maxsize = newmaxsize;
|
||||
replay_prune(rc);
|
||||
mtx_unlock(&rc->rc_lock);
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user