From patchwork Thu Jun 6 11:06:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 165974 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp8635606ili; Thu, 6 Jun 2019 04:09:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxmsLHBvhjXbGDov+yeHmIDoG0wa/qwPu6MaKRfBY2QnPBrv+kpZ/uqFpj52nogADhSiKsC X-Received: by 2002:a37:b5c5:: with SMTP id e188mr38809635qkf.55.1559819353712; Thu, 06 Jun 2019 04:09:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559819353; cv=none; d=google.com; s=arc-20160816; b=lZ+O7qF36xGFLGj9ZzqT6uSzXFNtYZFMrRTG0bRqgIMXlXtWOcMjKSBMpMkEzhHh97 Bp6gogtL7o5EDS8i9qj0Xl2dLIT2nVdzoGyyOqwV0kZgGIqjGvzYqQvCvn4CFgYUGhxb 8TZqE/U4LwBo5qxCnujgTSHvu2tfocbiG+EKvzDxFma+5FrHOpmbaSazVjFP/uXd9pKP OX+j8Xwo8E2kwqGfgz48PbZiPXGMsdyQM2RYcPq/inaqvxbagtErjFFxEukLN613zPA0 mOz4ooVLeRPnt2RPSrN69TYDlCFy7qsZPZTtyT+Ww/04BYpOXnmtWQ3H66v3yWkV1qIc kHWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from; bh=+oE12usT3djrwYdOdO32mp9XnStn6K/YFFYAJDLye1c=; b=KIbZQdVtPjlpfWocrCnx0iBRa8M0sbw7GFU9UaANcup+Lhor2J+mujZzMjJPwG93fe sYob9B2TlgH0rzoWD6dsnW3nA3N/J9xDb7rwhqc8itKrHgM947ME9TroenGg8Oe86IMT cim8jYHj9+2B5OFqLAjNQleVBC1FoF8bpS0oQN470Oz4PNR9TX+vEG6wPjmrwQMuCh2a pzq8BkANC6fwR59khtY8h25C5tf7NnY3Oo6YDyINY7FeINqifJePkTaWCoKeLDGt2x+N 74/g8tLUeOxrV9og7HFq5SfOpIb1BvobRjDMSpheiun/xiXmiYyt5DtIG5WfRW3PcAM4 6YSw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id k43si1634744qtf.219.2019.06.06.04.09.13 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 06 Jun 2019 04:09:13 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Received: from localhost ([127.0.0.1]:58371 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hYqGf-0001Im-5L for patch@linaro.org; Thu, 06 Jun 2019 07:09:13 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60600) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hYqFS-0000Ua-VM for qemu-devel@nongnu.org; Thu, 06 Jun 2019 07:07:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hYqFS-0003kc-1e for qemu-devel@nongnu.org; Thu, 06 Jun 2019 07:07:58 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:41725) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hYqFM-0003Y5-4R; Thu, 06 Jun 2019 07:07:52 -0400 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MyKYE-1gcKlM29eO-00ydrs; Thu, 06 Jun 2019 13:06:44 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Thu, 6 Jun 2019 13:06:13 +0200 Message-Id: <20190606110625.32127-5-laurent@vivier.eu> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190606110625.32127-1-laurent@vivier.eu> References: <20190606110625.32127-1-laurent@vivier.eu> MIME-Version: 1.0 X-Provags-ID: V03:K1:Sdcr+43MaEvgOFCLqoBVvN3f0eFhHJAHvIaumx6TwHBbk8Op53r mhRKmdzJb12QS3KddxUe1EtLseBs5xkd1SsXwA3+T9NO/kW9XTkRTTOzQes53BFDepWNqGa UESSp0MEJu5lf5G+XNU031f0o3i6XLWMYDa2rXelkiJ8HOl/LTYwUX2zHdgQMABfP9IBFXm crE91O+LUBQMfdFtDEzyQ== X-UI-Out-Filterresults: notjunk:1; V03:K0:FhUQ6BSxQOE=:HEakt/fZUJwDEWxUrzBJhV IMUgGlIHLecx/vwK/4V6ODYNsPuQlHy01wVQ8XU58vvOw76/Syr6kJMSR1d7QdMnH57sAD/xL aYh4iUNm/UtwGhf8M6YyGyPsEyp6H73sEd4RixaMpugkcdJTonPxzt5xnTnPD6CGc3AxWJ6bK s9aRAC18kkyFc6u50hUu86enyjKpEQttOEGz4ErmMZOnHcYmxthr61OxYFCaFvzsaFxqOzzKq +VL2hAxkBPiiD03SHxi+iz59ofelXdQvM2O1c00rzsD7d6wYZY1vvmJduDJ1fOppQBLtOqVNi 3MXdercddxWOKg53OllPqCxVlbWh1oIQTQTbJ2U295amOlAuPlM9Za+XSB93oTShAacj+QurY ALee5rNrUsnP3M1KHREhYfZoCXjQIUGpH7lndAf3halW3pTCJNLeOpCmeroofyo6QdEbtZJBY fDB+epeCrqDnAdA5NnRHtlNq9+21tHIMpEgmPNcEZyuOLtbJu5ALgpsjC8A3vyY/2mW0MpLvQ 2R+9LzK43lETPlxySTTmj8FuJCNsz8SRcT8Zhjk24og4LEU/qwG94pWY+4cK6vUR6K9xXPrIi Zw38MhJk52TEmRfFCrvT21ZosID+Q1yhCW2UA4Rs5ELjkgfmkSakObIwGK0zL5ORTQGjmbINZ WET/FUhprHHrOp0t+Lnncq3uQvgZicKI3aI+uNxr1qq2BvMWioiiP7foW4PrJwXJp2IhkdLnY P1v7OFtu598stMsEU5eK6ZCRvOp2bauMzPluQySB6WlCrYkMoaZOxkMdMBc= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 217.72.192.75 Subject: [Qemu-devel] [PULL 04/16] util: Adjust qemu_guest_getrandom_nofail for Coverity X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , Peter Maydell , Dmitry Fleytman , David Hildenbrand , Michael Tokarev , Gerd Hoffmann , Juan Quintela , Aleksandar Rikalo , "Michael S. Tsirkin" , Halil Pasic , Christian Borntraeger , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Richard Henderson , "Dr. David Alan Gilbert" , Yuval Shaia , Alex Williamson , Richard Henderson , =?utf-8?q?Daniel_P=2E_Berrang?= =?utf-8?b?w6k=?= , qemu-s390x@nongnu.org, Cornelia Huck , Laurent Vivier , qemu-trivial@nongnu.org, Michael Walle , Aleksandar Markovic , Paolo Bonzini Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Richard Henderson Explicitly ignore the return value of qemu_guest_getrandom. Because we use error_fatal, all errors are already caught. Fixes: CID 1401701 Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20190530173824.30699-1-richard.henderson@linaro.org> Signed-off-by: Laurent Vivier --- util/guest-random.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.21.0 diff --git a/util/guest-random.c b/util/guest-random.c index e8124a3cad48..00a08fd9819c 100644 --- a/util/guest-random.c +++ b/util/guest-random.c @@ -56,7 +56,7 @@ int qemu_guest_getrandom(void *buf, size_t len, Error **errp) void qemu_guest_getrandom_nofail(void *buf, size_t len) { - qemu_guest_getrandom(buf, len, &error_fatal); + (void)qemu_guest_getrandom(buf, len, &error_fatal); } uint64_t qemu_guest_random_seed_thread_part1(void)