]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Don't overwrite mask in virResctrlAllocFindUnused
authorMartin Kletzander <mkletzan@redhat.com>
Tue, 30 Jan 2018 14:06:53 +0000 (15:06 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Wed, 31 Jan 2018 13:51:34 +0000 (14:51 +0100)
commit859186091cc6348e48cdad37c635fb3342e68189
treec836e8671760aa2b61dbc2baa0bcfc96e3b557fb
parentc39ce914dd88c35a66d1088f0688da24fea8cfcd
util: Don't overwrite mask in virResctrlAllocFindUnused

Due to confusing naming the pointer to the mask got copied which must not
happen, so use UpdateMask instead of SetMask.  That also means we can get
completely rid of SetMask.

Also don't clear the free bits since it is not used again (leftover from
previous versions).

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/util/virresctrl.c