On Thu, Mar 17, 2022 at 09:23:40AM +0100, Michal Privoznik wrote: > The virNetDevGenerateName() function uses a global array of > virNetDevGenName structs to find next unused name for network > device. This obviously needs some locking and in fact each member > of the array has its own lock. However, these members are not > virObjects, they are just plain structs, therefore > VIR_WITH_MUTEX_LOCK_GUARD() must be used instead of > VIR_WITH_OBJECT_LOCK_GUARD() to lock individual mutexes. > > Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx> > --- > src/util/virnetdev.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Pavel Hrdina <phrdina@xxxxxxxxxx>
Attachment:
signature.asc
Description: PGP signature