]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
conf: Report error for unknown shmem ioeventfd value
authorLuyao Huang <lhuang@redhat.com>
Mon, 11 May 2015 12:59:37 +0000 (20:59 +0800)
committerMartin Kletzander <mkletzan@redhat.com>
Mon, 11 May 2015 14:05:07 +0000 (16:05 +0200)
commitc49b9032a212538ff28786d1b9922ebf549ea5ca
tree197884cc58b6b153079ca7d4b066741a4327ac27
parent076dd379958ff55ef7e39d7f6a7a1c9efded2a77
conf: Report error for unknown shmem ioeventfd value

https://bugzilla.redhat.com/show_bug.cgi?id=1220265

Passing the return value to an enum directly is not safe.  Fix this by
comparing the true integer result of virTristateSwitchTypeFromString().

Signed-off-by: Luyao Huang <lhuang@redhat.com>
src/conf/domain_conf.c