From a806f334018cdb0be8f007fa482b695ef136b061 Mon Sep 17 00:00:00 2001 From: AKASHI Takahiro Date: Fri, 15 Apr 2022 16:15:35 +0900 Subject: [PATCH] dm: tag: change ENOSPC to ENOMEM ENOMEM is a more common error code for memory starvation. Signed-off-by: AKASHI Takahiro Reviewed-by: Heinrich Schuchardt Reviewed-by: Ilias Apalodimas --- 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 6829bcd880..22999193a5 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.39.5