]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virnuma: add nodeset NULL check in virNumaSetupMemoryPolicy
authorChen Fan <chen.fan.fnst@cn.fujitsu.com>
Fri, 7 Nov 2014 08:54:56 +0000 (16:54 +0800)
committerMartin Kletzander <mkletzan@redhat.com>
Fri, 7 Nov 2014 11:04:57 +0000 (12:04 +0100)
commitfc313364b19be6a3662d5301e195b898d6662087
treec88695f4b335b17fc3b44adb59d5713773ab9505
parent6cc9855127843faabbc985e0a3fd61636cab19a1
virnuma: add nodeset NULL check in virNumaSetupMemoryPolicy

Introduced by commit c63ef0452b, when nodeset is NULL, validation will
pass in virNumaSetupMemoryPolicy, but virBitmapNextSetBit must ensure
bitmap is not NULL, otherwise that might cause a segmentation fault.
This patch fixes it.

Signed-off-by: Chen Fan <chen.fan.fnst@cn.fujitsu.com>
src/util/virnuma.c