[PATCH 3/4] dm: core: Correct calloc arguments

Simon Glass sjg at chromium.org
Thu Jul 9 21:15:08 CEST 2026


On 2026-07-03T09:11:23, Peng Fan <peng.fan at oss.nxp.com> wrote:
> dm: core: Correct calloc arguments
>
> Every other calloc in drivers/core uses calloc(count, size) with count
> first. Fix the two reversed calloc(sizeof, 1) calls for consistency.
>
> Signed-off-by: Peng Fan <peng.fan at nxp.com>
> Reviewed-by: Raphaël Gallais-Pou <raphael.gallais-pou at foss.st.com>
>
> drivers/core/tag.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list