From: AKASHI Takahiro Date: Fri, 15 Apr 2022 07:15:35 +0000 (+0900) Subject: dm: tag: change ENOSPC to ENOMEM X-Git-Tag: v2025.01-rc5-pxa1908~1438^2~11 X-Git-Url: http://git.dujemihanovic.xyz/%22http:/www.sics.se/static/%7B%7B%20%24style.Permalink%20%7D%7D?a=commitdiff_plain;h=a806f334018cdb0be8f007fa482b695ef136b061;p=u-boot.git 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 --- 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;