]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Fix error path in virSCSIVHostOpenVhostSCSI
authorJohn Ferlan <jferlan@redhat.com>
Tue, 12 Dec 2017 13:33:48 +0000 (08:33 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 13 Dec 2017 20:37:30 +0000 (15:37 -0500)
commit9e030093f20d6e5a70272af8e3826823de24f73a
tree0d6cbef73f9fc6f28d6886a589737f69e6e9502d
parent10c73bf18a8538376641c22142c18a255426ef3a
util: Fix error path in virSCSIVHostOpenVhostSCSI

We cannot be sure someone initialized the passed *vhostfd and we
certainly don't want or need to be calling VIR_FORCE_CLOSE on what
probably is -1. So let's just return -1 immediately.
src/util/virscsivhost.c