Message ID | 20220419010517.47175-2-takahiro.akashi@linaro.org |
---|---|
State | Accepted |
Commit | a806f334018cdb0be8f007fa482b695ef136b061 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6886:0:0:0:0 with SMTP id m6csp2860113map; Mon, 18 Apr 2022 18:05:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxoGPKBjRb4FzdxeImFt/ONzyyGEnfqW6gnknpw7gdWdNly1pehjG5Dp17LFhfeNwemZui6 X-Received: by 2002:a05:6402:42d4:b0:412:c26b:789 with SMTP id i20-20020a05640242d400b00412c26b0789mr14985659edc.232.1650330352206; Mon, 18 Apr 2022 18:05:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650330352; cv=none; d=google.com; s=arc-20160816; b=IA5tf96Iiassvms5YcvjRWmtSlB/F+bSQE6g8lelIUDcp338HRUyQiD0vxr5N+ASPD kGi4WeAgJKWoPl27+h8Fhpuo/8ENFgy/pbitH8/c+7y6lu3nx8zbMQ6XZqLuJ3MoKioc RbQaXSguB5bsjgowEkkQcoQffIFO/m1uPx1FtT71RN0L5izQ5+aC/ELGmq9/ASf/NVvI 7swW9NvvMWhdwZjlHR5S8cyuT3d47BjGtCz7mT1pWGvcH6w44+lKYevI5+0ihZcFEDJU MYZqUAuODCgJTOJzuqlEG4zUd9i0Z9IKTx6eJPiMEvSOlIIUPTuDbEePgsegvp89JqzD 2zRw== 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=yPlc4gJGW0AhXRY0zwO1CjBS+z1fQTk36P+/M080M4Q=; b=AGnBbgI+kH3GoVVDMAiuMjRPsB9RyRrd8snWG8g1dzBGEStaeVg7xzo1Y7SW1ON1EU raDnRHQJ0AAwBG97p/nTJLe51vK6MJGpC5x8t3zyQoBbCMmFrFzEUqUtBv3jqUQ2gtOk 0NhnDCAX+M9sM7vwdxok99+PjwoCVIlDzwjkplJLbeYyaMG/tPCFs7b5dN3JwHjk2gZ5 OnOw4VzpOmmckxgnGTe71pPzF/aQFQHkPwgrDXEHwP2fY2LcHXOazBTHV+hWSRA1CHhN FAKor5Qy8uJ548J+2oB33BWpCSAcDbyBfyz7p7Penjb3nne8HIMPQcOZdOud9nm9msjH nZ+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fUMHTN6h; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <u-boot-bounces@lists.denx.de> Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id o16-20020a1709064f9000b006efd8a8ce10si685334eju.639.2022.04.18.18.05.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Apr 2022 18:05:52 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fUMHTN6h; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 07D3D83B29; Tue, 19 Apr 2022 03:05:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="fUMHTN6h"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B9EFC83C13; Tue, 19 Apr 2022 03:05:47 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8022983B25 for <u-boot@lists.denx.de>; Tue, 19 Apr 2022 03:05:42 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=takahiro.akashi@linaro.org Received: by mail-pg1-x52b.google.com with SMTP id 203so2952326pgb.3 for <u-boot@lists.denx.de>; Mon, 18 Apr 2022 18:05:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=yPlc4gJGW0AhXRY0zwO1CjBS+z1fQTk36P+/M080M4Q=; b=fUMHTN6hhSih6vtRKX2jDaA6+NCH6OVh1vHCGCmf7/Ddr2AN7aAdBNIbGW27/LKkZE fM/AlxDFXTHcHrzg9e8CBeAgjPIUZcn4GDGVt0KJev/mBqopPHegBwtny6CQTTDyMxBN NZHpaDEYMvTiFEGXo8zJ9J8lSa4thoD+M96iie8rJsE0fF5mTy2GW++Su9ZyBmRKKwwC 3WjElQOV1y+dHExkytxSoeP7g20XkezpwzEzh8qAozB5Q9RyUL5B3TVLUflNNAlp3mdW iwM5yvsxJktRK4NwK6C1AOkhj/QyjuFyyt6Db6oysT9rgM9gxYj9MAl3Xe+4A4DbsvIW neKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=yPlc4gJGW0AhXRY0zwO1CjBS+z1fQTk36P+/M080M4Q=; b=M/3MaE1Piv5Xccf4MlWtNrI5xnODpD6EoZS/7QH6ErlM4BryyxB7bpQKc0x/Cni5Wc MCHXc0fksWF4txWBBqmiqjd7VA7BgiD2bKa6AnqNF2baPC2w1YY/MYC33OVGjoLNNjjE b6ocI8Y49HZa/wKaOyrg8EmW8lBPUtoH+0G4efBI1kNMViq+qlfJJQpmmPdYYrg+HeUo HYH+vQSSePYid78D3k3RwdW7QmYRkOVl6ZICq9GZFqsvx2Acof9KRVasESsGFJ4CZizN doclbt9Zoe4EhZn0Pt3EhQOIS9KqO9+R4vzCgaFWBES0Cp5k/4BrI+XicCF5j8uFRdAw /z8A== X-Gm-Message-State: AOAM532Gp52AnReizDr1ncFQ/5CZqtt4mwL1FcORUJZx9t2Sw2meX4uZ 52K3pEQwD6UPfm477pL91KNEumE2J3vhkw== X-Received: by 2002:a63:368a:0:b0:398:2829:2698 with SMTP id d132-20020a63368a000000b0039828292698mr12513288pga.172.1650330340927; Mon, 18 Apr 2022 18:05:40 -0700 (PDT) Received: from localhost.localdomain ([2400:4050:c3e1:100:5858:d3a6:5cad:ceeb]) by smtp.gmail.com with ESMTPSA id k137-20020a633d8f000000b0039800918b00sm14043756pga.77.2022.04.18.18.05.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Apr 2022 18:05:40 -0700 (PDT) From: AKASHI Takahiro <takahiro.akashi@linaro.org> To: xypron.glpk@gmx.de, sjg@chromium.org, ilias.apalodimas@linaro.org Cc: masami.hiramatsu@linaro.org, u-boot@lists.denx.de, AKASHI Takahiro <takahiro.akashi@linaro.org> Subject: [PATCH v5 01/12] dm: tag: change ENOSPC to ENOMEM Date: Tue, 19 Apr 2022 10:05:06 +0900 Message-Id: <20220419010517.47175-2-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220419010517.47175-1-takahiro.akashi@linaro.org> References: <20220419010517.47175-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean |
Series |
efi_loader: more tightly integrate UEFI disks to driver model
|
expand
|
diff --git a/drivers/core/tag.c b/drivers/core/tag.c index 6829bcd8806c..22999193a5a3 100644 --- a/drivers/core/tag.c +++ b/drivers/core/tag.c @@ -29,7 +29,7 @@ int dev_tag_set_ptr(struct udevice *dev, enum dm_tag_t tag, void *ptr) node = calloc(sizeof(*node), 1); if (!node) - return -ENOSPC; + return -ENOMEM; node->dev = dev; node->tag = tag; @@ -53,7 +53,7 @@ int dev_tag_set_val(struct udevice *dev, enum dm_tag_t tag, ulong val) node = calloc(sizeof(*node), 1); if (!node) - return -ENOSPC; + return -ENOMEM; node->dev = dev; node->tag = tag;
ENOMEM is a more common error code for memory starvation. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> --- drivers/core/tag.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)