[U-Boot] [PATCH] vfat: Fix mkcksum argument sizes
Michal Simek
monstr at monstr.eu
Mon Jan 28 16:12:38 CET 2013
2013/1/11 Marek Vasut <marex at denx.de>:
> In case a function argument is known/fixed size array in C, the argument is
> still decoyed as pointer instead ( T f(U n[k]) ~= T fn(U *n) ) and therefore
> calling sizeof on the function argument will result in the size of the pointer,
> not the size of the array.
>
> The VFAT code contains such a bug, this patch fixes it.
>
> Reported-by: Aaron Williams <Aaron.Williams at cavium.com>
> Signed-off-by: Marek Vasut <marex at denx.de>
> Cc: Tom Rini <tom.rini at gmail.com>
> Cc: Aaron Williams <Aaron.Williams at cavium.com>
> ---
> fs/fat/fat.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Tested-by: Michal Simek <michal.simek at xilinx.com>
Thanks,
Michal
--
Michal Simek, Ing. (M.Eng)
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Microblaze cpu - http://www.monstr.eu/fdt/
Maintainer of Linux kernel - Xilinx Zynq ARM architecture
Microblaze U-BOOT custodian and responsible for u-boot arm zynq platform
More information about the U-Boot
mailing list