Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp686366ybb; Fri, 3 Apr 2020 09:57:44 -0700 (PDT) X-Google-Smtp-Source: APiQypLz7rTSdLutzL5B87hHvxk6XNP9gjirf0I1BYgOLd01yfMqPDKLf6uKrwgIsp+HNJJ+DehL X-Received: by 2002:a4a:9c86:: with SMTP id z6mr7694325ooj.68.1585933063997; Fri, 03 Apr 2020 09:57:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585933063; cv=none; d=google.com; s=arc-20160816; b=wYwcfsByDuLu/IGW9gd2vnRBY3iE2AUXAzuHp9S9DN/cTQDBT5k5ZGWkItySN5m7dw IVci1t6qhwNHQShAngR+w/DkNJ6EwCNd5t2/6fu9yiSQ6Tb7hKaqzasAv7OjvKT0VU6a E59814gsYwNe6rL9Y42AEozBgTQRQQrfyn+BaVGEjI7vwpB/PD1eKfkVYHgYzg+mTrxY IRTDuHDKZHsZxQuhzFMBEToZecy2nYEUkxVoNRR8Nh2c41KHOhVX1N3HcaVsQhtr4CWD pwJvL6Z+7982OcHmjY/fg+yVwGwmudU/oHjqHWJRKcvKJxqSIWGsQEoVaZlJX4yWkpKR Pdyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=2SJcOix8Fae6FyLtzcXlO0OaUSu2FwzPh/mvZNztQFQ=; b=Zrf1HNDqyh6DcDvLPumWcfxp85G/z1X1aVkbMWqjexkcWRWJKu++yBpKO89jtrzRTb UV61gKE6zps96ipxuRXMXBRzVW2ZUWEeK1eUdh6DsqKAXxhumBqN8udsT5Sfd4+SWYbr wcREUiFqrK/lN8pmPZY+C2FjzkQsFLqV6dtkkwHamZduMvGDxZXrmkg+mgQc5s/jlWEL 3aMTCWvLshZOAWCjc/AybYSpEGNb+6M5WtZTRkNRwdxZyWJWNlJRes6LNmaKyNBUUDQW Ijh0e/DGLixMxWufKjXSIDcb4muaQsjwo3hg86opP+96TToG9oq+OYdyb1JiKlnR3YB6 EqTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WqYlpUEw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l3si3820464oie.6.2020.04.03.09.57.31; Fri, 03 Apr 2020 09:57:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WqYlpUEw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404613AbgDCQvs (ORCPT + 99 others); Fri, 3 Apr 2020 12:51:48 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:43540 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2404173AbgDCQvs (ORCPT ); Fri, 3 Apr 2020 12:51:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585932707; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:in-reply-to:in-reply-to:references:references; bh=2SJcOix8Fae6FyLtzcXlO0OaUSu2FwzPh/mvZNztQFQ=; b=WqYlpUEwoC9b0ZS8p+uRLWlOoQzJIWCF7dJ9IrmUrlQPvGAl8Z7AS5jAA3nmAVCnjzzOJ/ avM1A4CO0wD0E0p/Jgp4qSG0pi2blATevNay1ZZm3qBgvD8g9L4oqzPiYwkvqRsAUmsIO3 W8XwrCHoSFsL8JMiqaw3Ybaq0lBgnuo= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-353-Ndb9pVMBPAuljmrtVMmZdA-1; Fri, 03 Apr 2020 12:51:45 -0400 X-MC-Unique: Ndb9pVMBPAuljmrtVMmZdA-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id F1E8113F8; Fri, 3 Apr 2020 16:51:43 +0000 (UTC) Received: from eperezma.remote.csb (ovpn-113-28.ams2.redhat.com [10.36.113.28]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8583718A85; Fri, 3 Apr 2020 16:51:41 +0000 (UTC) From: =?UTF-8?q?Eugenio=20P=C3=A9rez?= To: "Michael S. Tsirkin" Cc: kvm list , "virtualization@lists.linux-foundation.org" , Linux Next Mailing List , =?UTF-8?q?Eugenio=20P=C3=A9rez?= , Stephen Rothwell , Cornelia Huck , Halil Pasic , "linux-kernel@vger.kernel.org" , Christian Borntraeger Subject: [PATCH 4/8] vhost: Fix bad order in vhost_test_set_backend at enable Date: Fri, 3 Apr 2020 18:51:15 +0200 Message-Id: <20200403165119.5030-5-eperezma@redhat.com> In-Reply-To: <20200403165119.5030-1-eperezma@redhat.com> References: <20200403165119.5030-1-eperezma@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes: ("7c48601a3d4d tools/virtio: Add --reset=random") --- drivers/vhost/test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/vhost/test.c b/drivers/vhost/test.c index 789c096e454b..6aed0cab8b17 100644 --- a/drivers/vhost/test.c +++ b/drivers/vhost/test.c @@ -293,8 +293,8 @@ static long vhost_test_set_backend(struct vhost_test *n, unsigned index, int fd) backend = vhost_vq_get_backend(vq); vhost_vq_set_backend(vq, NULL); } else { - r = vhost_vq_init_access(vq); vhost_vq_set_backend(vq, backend); + r = vhost_vq_init_access(vq); if (r == 0) r = vhost_poll_start(&vq->poll, vq->kick); } -- 2.18.1