[PATCH] kvm: fix incorrect NULL check on list iterator