All of lore.kernel.org
 help / color / mirror / Atom feed
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 v4 01/12] dm: tag: change ENOSPC to ENOMEM
Date: Fri, 15 Apr 2022 16:15:35 +0900	[thread overview]
Message-ID: <20220415071546.122475-2-takahiro.akashi@linaro.org> (raw)
In-Reply-To: <20220415071546.122475-1-takahiro.akashi@linaro.org>

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(-)

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;
-- 
2.33.0


  reply	other threads:[~2022-04-15  7:16 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-15  7:15 [PATCH v4 00/12] efi_loader: more tightly integrate UEFI disks to driver model AKASHI Takahiro
2022-04-15  7:15 ` AKASHI Takahiro [this message]
2022-04-15  7:59   ` [PATCH v4 01/12] dm: tag: change ENOSPC to ENOMEM Heinrich Schuchardt
2022-04-15  9:11     ` Ilias Apalodimas
2022-04-15  7:15 ` [PATCH v4 02/12] dm: tag: add some document AKASHI Takahiro
2022-04-15  7:15 ` [PATCH v4 03/12] test: dm: add tests for tag support AKASHI Takahiro
2022-04-15  7:15 ` [PATCH v4 04/12] dm: disk: add UCLASS_PARTITION AKASHI Takahiro
2022-04-15  7:15 ` [PATCH v4 05/12] dm: blk: add a device-probe hook for scanning disk partitions AKASHI Takahiro
2022-04-15  7:15 ` [PATCH v4 06/12] efi_loader: split efi_init_obj_list() into two stages AKASHI Takahiro
2022-04-15  7:15 ` [PATCH v4 07/12] efi_loader: disk: a helper function to create efi_disk objects from udevice AKASHI Takahiro
2022-04-15  7:15 ` [PATCH v4 08/12] efi_loader: disk: not create BLK device for BLK(IF_TYPE_EFI_LOADER) devices AKASHI Takahiro
2022-04-15  7:15 ` [PATCH v4 09/12] efi_loader: disk: a helper function to delete efi_disk objects AKASHI Takahiro
2022-04-15  7:15 ` [PATCH v4 10/12] efi_loader: disk: not delete BLK device for BLK(IF_TYPE_EFI_LOADER) devices AKASHI Takahiro
2022-04-15  7:15 ` [PATCH v4 11/12] dm: disk: add read/write interfaces with udevice AKASHI Takahiro
2022-04-15  7:15 ` [PATCH v4 12/12] efi_loader: disk: use udevice instead of blk_desc AKASHI Takahiro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220415071546.122475-2-takahiro.akashi@linaro.org \
    --to=takahiro.akashi@linaro.org \
    --cc=ilias.apalodimas@linaro.org \
    --cc=masami.hiramatsu@linaro.org \
    --cc=sjg@chromium.org \
    --cc=u-boot@lists.denx.de \
    --cc=xypron.glpk@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.