[U-Boot] [PATCH] disk: part_dos: Use the original allocation scheme for the SPL case

Fabio Estevam festevam at gmail.com
Mon Oct 9 01:56:26 UTC 2017


On Sun, Oct 8, 2017 at 11:04 AM, Jonathan Gray <jsg at jsg.id.au> wrote:

> It turns out to be
>
> commit 2460098cffacd18729262e3ed36656e6943783ed
> Author: Tom Rini <trini at konsulko.com>
> Date:   Fri Sep 22 07:37:43 2017 -0400
>
>     fs/fat: Reduce stack usage
>
>     We have limited stack in SPL builds.  Drop itrblock and move to
>     malloc/free of itr to move this off of the stack.  As part of this fix a
>     double-free issue in fat_size().
>
>     Signed-off-by: Tom Rini <trini at konsulko.com>
>     ---
>     Rework to use malloc/free as moving this to a global overflows some SH
>     targets.
>
>  fs/fat/fat.c | 14 ++++++++++----
>  1 file changed, 10 insertions(+), 4 deletions(-)
>
> With that reverted I just get the efi loader problem, no alignment errors.

Thanks for doing the bisect.

Tom, can you prepare a fix for this?


More information about the U-Boot mailing list