From nobody Sun Feb 8 21:41:44 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 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=1654877892; cv=none; d=zohomail.com; s=zohoarc; b=fZyNuCiEe1EWE8/5fPvh2Rl9zFAzbZgyUS7yhPGCLsbwb/OBa385PnkiRo2QXR1oQXdsL1EX3I6JMEIggWwvLkZwZDgvSJhzNonT212W3I8y4PXZsON/DU5sgClerOGHoDjDzaiMy+Xzi7JQGBSst6/Gzm2tyOVwVby4Lhip0sA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1654877892; 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=9bWyXqd7HPhHTV/+NL+J/Jk2ojnOdQPJwazyiWdVnFI=; b=OOtSJFyGZvMrN/STVc+FoVYMpeJ/s1xxINzjjVYLUNBxdm7AbLw+phzu5PmFBokPpp8YoWgnnbHNPemKE3DBnZf+/QiFK3mGCfZcXZOBBdO8yzNiH/YybBoAUSc89DyLkYEcppUZGZ2p2yxvrheymguiY+LDYBqX+GeFE2XfIaM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1654877892880623.1017925060764; Fri, 10 Jun 2022 09:18:12 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-631-2xtTYZ9MP7OqKgd5vSpbTQ-1; Fri, 10 Jun 2022 12:18:07 -0400 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id DD3FB185A7B2; Fri, 10 Jun 2022 16:18:04 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 29950492C3B; Fri, 10 Jun 2022 16:18:02 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 01E69194704D; Fri, 10 Jun 2022 16:18:02 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id A576419466DF for ; Fri, 10 Jun 2022 16:18:00 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 9631F1415102; Fri, 10 Jun 2022 16:18:00 +0000 (UTC) Received: from rein.int.mamuti.net (unknown [10.40.192.31]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 755481415100 for ; Fri, 10 Jun 2022 16:18:00 +0000 (UTC) Received: by rein.int.mamuti.net (Postfix, from userid 500) id BB9A41800BC; Fri, 10 Jun 2022 18:17:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1654877891; 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=9bWyXqd7HPhHTV/+NL+J/Jk2ojnOdQPJwazyiWdVnFI=; b=X+BWPESHwKGavK7EBxR9RQ2JDQI2jjw0DyqyIP2/+hXdVjKdwuqw+42gGZDKbGK6/lYzXS YS0LiZ0kRFDC9L9dIeY2gM77rtyZFQREnHCyFl6W9DHEpGfcGF4o+ERsaoBFzTnLkWe1px 6FpYnk57+znulrSlSXd/Cs8Jicphl60= X-MC-Unique: 2xtTYZ9MP7OqKgd5vSpbTQ-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Jiri Denemark To: libvir-list@redhat.com Subject: [libvirt PATCH] util: Fix error reporting in virProcessSetMaxMemLock Date: Fri, 10 Jun 2022 18:17:23 +0200 Message-Id: <9224d7e716f20ab1617119688acf6e01bf984379.1654877843.git.jdenemar@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.7 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1654877894423100001 Content-Type: text/plain; charset="utf-8" Commit v7.1.0-136-g6a6d6bb520 refactored virProcessSetMaxMemLock by moving its part into a new virProcessSetLimit, but lost "return -1" on error; Signed-off-by: Jiri Denemark Reviewed-by: Daniel P. Berrang=C3=A9 --- src/util/virprocess.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/virprocess.c b/src/util/virprocess.c index 5ed0b5d0db..013afd91b4 100644 --- a/src/util/virprocess.c +++ b/src/util/virprocess.c @@ -926,6 +926,7 @@ virProcessSetMaxMemLock(pid_t pid, unsigned long long b= ytes) _("cannot limit locked memory " "of process %lld to %llu"), (long long int)pid, bytes); + return -1; } =20 VIR_DEBUG("Locked memory for process %lld limited to %llu bytes", --=20 2.35.1