Message ID | 20230809175006.242479-6-richard.henderson@linaro.org |
---|---|
State | Accepted |
Commit | 47d1e982318a0d97c557ce349ea9e2b601554055 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:6359:baf:b0:129:c516:61db with SMTP id gf47csp135613rwb; Wed, 9 Aug 2023 10:51:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGn7yeUZcmbzA/CpFElIxHblGOhEJvCjvtQvfMAze022RfU7GI1AorKjUuu4sVn9bECLGsF X-Received: by 2002:a05:6358:94a1:b0:134:e63f:a891 with SMTP id i33-20020a05635894a100b00134e63fa891mr76439rwb.29.1691603484019; Wed, 09 Aug 2023 10:51:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691603483; cv=none; d=google.com; s=arc-20160816; b=naFI7O+Qm9WG4wHGNbecWmDXB7kR3oKdaGB4wTeQEBafkBdz+nJ7DrvAoPdZgrZZw8 EqIvysTml6H0um5zI9k5qtTPPRlVxCAOaJ947ZgSjIW+ruXa1wM6hhVOwCWybVKKuMsM aF6qGRsH9kSuRqjFmrgTLNTmKo99DhYNauro0poY9cbyIjjPmAFw/kZjF5Pn+ECyYUUX 9E9z9C59S8r3u8YgYFOXlYPLRLWe/PRY1XOuKl/nKv95LxyEj8YHrjjdm36U3PhNalOq mMOnQTUr9sFl/zUhpz68CWUDMQ+ej3PQCk5LSX9DPpCdNuoMC/Wj0j2zbx0To+rai7DL H8dA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ljQLvXBY81ZagAz+vbBgSRpeNzKthjrbvj4TtE4JxtM=; fh=nKwyeXx8rt8hF214OSFP+HjBpDto8utNxLoZSNqK/Bc=; b=QC1oRkk9tSnU7c664V/mgWasYdlj8s0SHqrugWRJbaca8JchToWUBQtstkRfFXfq7f 6hSTQC0xRQziCSs9kJf7HRRlZFqrup+Ic0iCzkczc74lWfubiA5ZjPspBu0elMympfn3 8iFYogtKBoFYzy3dsqH3S0PAKfOF4m1EtC31GtcoEzm71G+mhInr9jGGib3za6gaSbo1 TY036kih0vivz4zNtSBRWE5+2hONYrhT0huimJXa6lfbi82IDgS8wf9mj8g803NtTDMu kI+G5O+k1JGnzYtH1knCHhaVsyvQFY5kJvt2XuJtDW4UD09/FPaT5oCg8OEJPmyYkaAT 5UpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BewAU9F8; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id o4-20020ac87c44000000b00403ed87043fsi8230976qtv.697.2023.08.09.10.51.23 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 09 Aug 2023 10:51:23 -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; dkim=pass header.i=@linaro.org header.s=google header.b=BewAU9F8; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1qTnK5-0000Po-Ag; Wed, 09 Aug 2023 13:50:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1qTnK3-0000OO-0i for qemu-devel@nongnu.org; Wed, 09 Aug 2023 13:50:15 -0400 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1qTnK1-0005fC-4b for qemu-devel@nongnu.org; Wed, 09 Aug 2023 13:50:14 -0400 Received: by mail-pj1-x1034.google.com with SMTP id 98e67ed59e1d1-269304c135aso27716a91.3 for <qemu-devel@nongnu.org>; Wed, 09 Aug 2023 10:50:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691603412; x=1692208212; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ljQLvXBY81ZagAz+vbBgSRpeNzKthjrbvj4TtE4JxtM=; b=BewAU9F8uxcXcjMSwnG7vSFog8x6+0b77+Zl8kth06lQlqkv7O11O2S+xMxcViMWlp UVRh70LQPc3CwtfRBmLSt9cIRjvrH6CtwwmuKnMOV43whuzaIpB5Fi0sctaSRY23SIOR +/c76Ck9O5RnYIncBjJosgfQsjPIfvwv1JQlt982/IXaFvEBW5ITbFJehZ7gCTpelu+J jlESAX5baX+zxb3j01/iIxDbaYSz5wzbGojA4symALLSw3kv9I5nDbAkMZNxuC8JEwZ3 F4cNjXMC2LbJCErLR1I+JOUAbJ9EaRaeLZmusIl6ShSY4BUWJ95KXN7e3WH5oXgbWBwx C24w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691603412; x=1692208212; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ljQLvXBY81ZagAz+vbBgSRpeNzKthjrbvj4TtE4JxtM=; b=fYDTCK62d61UNvoNyCOK/t5Xb1QrMLpl5abZrtL3rUPhdkcgeG/BhNP5cjSfrChRvM efF+Fq/wV2b/1ynvsDuqM8UVJFbf5/kqID46hHLJ8VUVU0RSKauSEnCeDN6miCIWm0Gs 8fAzQQsIbSFQv4ohhYn4cCqMaHUJpBb0CrrGg8/D53DeLN4gETrM77Y1xRWG4rIX34xy OlagJ9SjJ7EIo3v2eGUeOVTLyLaluOgB0EIv0IccAKEyDTWlwPMW4E7iztxeUOtip7hx nk2VcRpoXuNogWaPGUFc/TlHCJmsrcNSO+sdVROfsCxJf1HheRb/EzqxwoVSNUNqkXtx Dz2Q== X-Gm-Message-State: AOJu0YyfEM6f8wgJKBygbvq23gb0aMTPCWnofyk/MLqRJ3a0/ogOsMBr xwqbBXMAt38TWnKvSnz7KXoYTRIoIdyEMPCON94= X-Received: by 2002:a17:90b:20b:b0:268:14a0:f8a with SMTP id fy11-20020a17090b020b00b0026814a00f8amr2794757pjb.39.1691603411859; Wed, 09 Aug 2023 10:50:11 -0700 (PDT) Received: from stoup.. ([2602:47:d483:7301:6bf0:9674:6ac4:f74c]) by smtp.gmail.com with ESMTPSA id y7-20020a17090a2b4700b0025dc5749b4csm1753710pjc.21.2023.08.09.10.50.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 10:50:11 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Cc: Helge Deller <deller@gmx.de> Subject: [PULL 5/6] util/interval-tree: Check root for null in interval_tree_iter_first Date: Wed, 9 Aug 2023 10:50:05 -0700 Message-Id: <20230809175006.242479-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230809175006.242479-1-richard.henderson@linaro.org> References: <20230809175006.242479-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1034.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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.29 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
[PULL,1/6] qemu/osdep: Remove fallback for MAP_FIXED_NOREPLACE
|
expand
|
diff --git a/util/interval-tree.c b/util/interval-tree.c index f2866aa7d3..53465182e6 100644 --- a/util/interval-tree.c +++ b/util/interval-tree.c @@ -797,7 +797,7 @@ IntervalTreeNode *interval_tree_iter_first(IntervalTreeRoot *root, { IntervalTreeNode *node, *leftmost; - if (!root->rb_root.rb_node) { + if (!root || !root->rb_root.rb_node) { return NULL; }