]> xenbits.xensource.com Git - libvirt.git/commit
hostdev: fix loop index error when resetvfnetconfig
authorHuanle Han <hanxueluo@gmail.com>
Thu, 2 Apr 2015 15:56:19 +0000 (23:56 +0800)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 14 Apr 2015 12:49:15 +0000 (14:49 +0200)
commita959671da8ec5b9df036eb15b51021e06c6e058f
treea98018bf21fdda63688a3201c4b9801c42a8ec7b
parentc61ded8a7d7bcfd60267c450fbb4c43169fdce1d
hostdev: fix loop index error when resetvfnetconfig

The variable 'last_processed_hostdev_vf' indicates index of the last
successfully configed vf. When resetvfnetconfig because of failure,
hostdevs[last_processed_hostdev_vf] should also be reset.

Signed-off-by: Huanle Han <hanxueluo@gmail.com>
src/util/virhostdev.c