From nobody Tue Apr 23 19:23:07 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) client-ip=207.211.31.81; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1600081422; cv=none; d=zohomail.com; s=zohoarc; b=MXhkHCZ1b6WKpJV4zMfUtsEDojbJLdOHzCbVK4p/UwhCxJKh1tUsbeAUzRtlkJsKdUc3BDOCxCPpVkiQML27N2u2v+95/jdrKguwvmYR1vF0zmCRjg1EDeQ7Fx2HdB3jqGuHLlkZgDpGHqKHVHXRVA9CWTUZz27GiqCNWa2NBCU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1600081422; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=cB27JaiZc0XsNiiRArUWrGFN3MUKP2Lxslu4HEARR1E=; b=VS6t/+wYL1N+PYxpD/FveerdaKFTL5U8BQ2+ie2lW1JTgDeQG0FQmzMa6k4t8bjNRUokt8GPr2vtqdc3JBM+7ffGg1Vjgmw5x6cOkzrSMIBRGvqEMLQmjsq/41VFkWwWUOynuFtyZKEPgiKByN2IME/mxtMtOYB4RlYptN5v4m4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) by mx.zohomail.com with SMTPS id 1600081422484381.90459705798605; Mon, 14 Sep 2020 04:03:42 -0700 (PDT) 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-331-yO0q_hXWP4GVRDzKy1IDtA-1; Mon, 14 Sep 2020 07:03:39 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 1492118C89CB; Mon, 14 Sep 2020 11:03:30 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6672C614F5; Mon, 14 Sep 2020 11:03:29 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id E93EB8C7C2; Mon, 14 Sep 2020 11:03:26 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 08EB3QbW029163 for ; Mon, 14 Sep 2020 07:03:26 -0400 Received: by smtp.corp.redhat.com (Postfix) id 0E95A1000320; Mon, 14 Sep 2020 11:03:26 +0000 (UTC) Received: from lpt.redhat.com (unknown [10.43.2.94]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8B4D1100EBC0 for ; Mon, 14 Sep 2020 11:03:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1600081421; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=cB27JaiZc0XsNiiRArUWrGFN3MUKP2Lxslu4HEARR1E=; b=XSj68tFs41UWwHkc1nma0PdsGE8GTHmJP5PYwXqjU/7t6yBXfA1QxSMwHYXR1Hf2jaLGaY MkaYyjKQHhOjXt/VOP/g3TItRA8W8Ju8Bsb88cXqG/f9PjVsc3v6y8gXC8EYWYOw270ZZS 3BxTj+iT5Wl9M2kangsfQ6W+btWEUvw= X-MC-Unique: yO0q_hXWP4GVRDzKy1IDtA-1 From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: libvir-list@redhat.com Subject: [libvirt PATCH] util: virNetDevTapCreate: initialize fd to -1 Date: Mon, 14 Sep 2020 13:03:20 +0200 Message-Id: <2b6cd855042984b87beb7e3c30b67b0f586d89bb.1600081393.git.jtomko@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0.002 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Signed-off-by: J=C3=A1n Tomko Fixes: 95089f481e003d971fe0a082018216c58c1b80e5 --- Pushed as trivial. src/util/virnetdevtap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/virnetdevtap.c b/src/util/virnetdevtap.c index ab5959c646..cbce5c71b7 100644 --- a/src/util/virnetdevtap.c +++ b/src/util/virnetdevtap.c @@ -322,7 +322,7 @@ int virNetDevTapCreate(char **ifname, size_t i =3D 0; struct ifreq ifr; int ret =3D -1; - int fd =3D 0; + int fd =3D -1; =20 virMutexLock(&virNetDevTapCreateMutex); =20 --=20 2.26.2