]> xenbits.xensource.com Git - libvirt.git/commit
conf: Resolve corner case on fc_host deletion
authorJohn Ferlan <jferlan@redhat.com>
Sat, 29 Apr 2017 15:29:27 +0000 (11:29 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 24 May 2017 14:14:58 +0000 (10:14 -0400)
commit2c8e30ee7e287d6490f643ccd2d7653a834e75e5
treee26e9c85e56abec6f20e0ae4394a785dce37dd6a
parent065e89cf8bacd4a86bc1a1f0ee91ce086ed1202e
conf: Resolve corner case on fc_host deletion

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

Testing found an inventive way to cause an error at shutdown by providing the
parent name for the fc host creation using the "same name" as the HBA. Since
the code thus assumed the parent host name provided was the parent HBA and
just extracted out the host number and sent that along to the vport_destroy
this avoided checks made for equality.

So just add the equality check to that path to resolve.
src/conf/node_device_conf.c