From nobody Mon Apr 29 13:45:25 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1594317725; cv=none; d=zohomail.com; s=zohoarc; b=M/M9NTsrcKzZV2yvNDtJSRkWliz3uWBW3f+YhA2TO0Vi2xpvADxC4Wc34eGuqL5JIUbjKLZNgGBZqTTjkoMKrfY9628XQpPO8QkPHIjrNjoL2Z0AMHiNMFJf2RzOa17VdpMUL+h9+7L+gOO/k0pqUEanyiH2yu/IFTRyC1ezGls= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594317725; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=rV+A+GC+sfbeBWbmGvpFyX4tjXUTjjrNmGDbFl8y/uQ=; b=Otqs5eBhWr1JBjeqXxlGM9fBDEV3BQkmz7MXrYdTwvA4FQjEs2oOGsdeWS0F9UmqCBll2Vm0smeJM3bEJKtmualw4EIru9u/IiVdCkkC4vY3a3G+zNtG6h8Nt2Id1Myb6MKtP/5s9KPVCK08GRJkGG9zIEbKIRB2viwHvzkFOaU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1594317725228460.79181961785434; Thu, 9 Jul 2020 11:02:05 -0700 (PDT) Received: from localhost ([::1]:36396 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jtarz-0005dw-Fn for importer@patchew.org; Thu, 09 Jul 2020 14:02:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33304) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jtar0-0005DB-BJ for qemu-devel@nongnu.org; Thu, 09 Jul 2020 14:01:02 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:56562 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1jtaqx-0001oq-D5 for qemu-devel@nongnu.org; Thu, 09 Jul 2020 14:01:01 -0400 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-114-3fV6lE9pM0mz3J1hkx595A-1; Thu, 09 Jul 2020 14:00:54 -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 3BC45102C7EE; Thu, 9 Jul 2020 18:00:53 +0000 (UTC) Received: from localhost.localdomain (ovpn-112-100.phx2.redhat.com [10.3.112.100]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A5BC7797FE; Thu, 9 Jul 2020 18:00:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594317656; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rV+A+GC+sfbeBWbmGvpFyX4tjXUTjjrNmGDbFl8y/uQ=; b=cw0YO1MAke/Lng9//Ih+ZAsaBKknVz17JmmVx0R511X9+JHCESvcUl3+1CCHLoBOdQglif xweeZDTfxO/dP6CtOlzxK7xBN5P4KK90k7X1vCGQO7S/xJCIqLrEuvRRXq4oDfnTgmgbmy CS/tVwevok2fiMZn2lOjn6DCMsoTTow= X-MC-Unique: 3fV6lE9pM0mz3J1hkx595A-1 From: P J P To: Greg Kurz Subject: [PATCH] 9p: null terminate fs driver options list Date: Thu, 9 Jul 2020 23:28:48 +0530 Message-Id: <20200709175848.650400-1-ppandit@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=ppandit@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=205.139.110.120; envelope-from=ppandit@redhat.com; helo=us-smtp-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/09 11:25:17 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -40 X-Spam_score: -4.1 X-Spam_bar: ---- X-Spam_report: (-4.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: QEMU Developers , Prasad J Pandit Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" From: Prasad J Pandit NULL terminate fs driver options' list, validate_opt() looks for a null entry to terminate the loop. Signed-off-by: Prasad J Pandit Reviewed-by: Li Qiang --- fsdev/qemu-fsdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fsdev/qemu-fsdev.c b/fsdev/qemu-fsdev.c index a9e069c0c7..3da64e9f72 100644 --- a/fsdev/qemu-fsdev.c +++ b/fsdev/qemu-fsdev.c @@ -78,6 +78,7 @@ static FsDriverTable FsDrivers[] =3D { "throttling.iops-read-max-length", "throttling.iops-write-max-length", "throttling.iops-size", + NULL }, }, { @@ -85,6 +86,7 @@ static FsDriverTable FsDrivers[] =3D { .ops =3D &synth_ops, .opts =3D (const char * []) { COMMON_FS_DRIVER_OPTIONS, + NULL }, }, { @@ -95,6 +97,7 @@ static FsDriverTable FsDrivers[] =3D { "socket", "sock_fd", "writeout", + NULL }, }, }; --=20 2.26.2