From patchwork Thu Nov 19 07:55:13 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vadim Rozenfeld X-Patchwork-Id: 61248 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nAJ7tHQF004759 for ; Thu, 19 Nov 2009 07:55:17 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753420AbZKSHzJ (ORCPT ); Thu, 19 Nov 2009 02:55:09 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753394AbZKSHzJ (ORCPT ); Thu, 19 Nov 2009 02:55:09 -0500 Received: from mx1.redhat.com ([209.132.183.28]:4043 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752823AbZKSHzI (ORCPT ); Thu, 19 Nov 2009 02:55:08 -0500 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nAJ7tE9J005513 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 19 Nov 2009 02:55:14 -0500 Received: from localhost.localdomain (vpn-6-4.tlv.redhat.com [10.35.6.4]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nAJ7tDjf004886 for ; Thu, 19 Nov 2009 02:55:14 -0500 Message-ID: <4B04F9E1.50709@redhat.com> Date: Thu, 19 Nov 2009 09:55:13 +0200 From: Vadim Rozenfeld User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20091014 Fedora/3.0-2.8.b4.fc11 Thunderbird/3.0b4 MIME-Version: 1.0 To: kvm Subject: [PATCH] viostor driver. small fix in startio routine (storport related path). X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org diff --git a/viostor/virtio_stor_hw_helper.c b/viostor/virtio_stor_hw_helper.c index 2e61b30..fac9792 100644 --- a/viostor/virtio_stor_hw_helper.c +++ b/viostor/virtio_stor_hw_helper.c @@ -27,7 +27,7 @@ SynchronizedAccessRoutine( if (adaptExt->pci_vq_info.vq->vq_ops->add_buf(adaptExt->pci_vq_info.vq, &srbExt->vbr.sg[0], srbExt->out, srbExt->in, -&srbExt->vbr) == 0){ +&srbExt->vbr)>= 0){ InsertTailList(&adaptExt->list_head,&srbExt->vbr.list_entry); adaptExt->pci_vq_info.vq->vq_ops->kick(adaptExt->pci_vq_info.vq); return TRUE;