Skip to content
Commit 06377c5a authored by Roger Quadros's avatar Roger Quadros Committed by Tom Rini
Browse files

spl: spl_legacy: Fix NAND boot on OMAP3 BeagleBoard



OMAP3 BeagleBoard NAND boot hangs when spl_load_legacy_img() tries
to read the header into 'struct hdr' which is allocated on the
stack.

As the header has already been read once before by spl_nand.c,
we can avoid the extra header allocation and read here by
simply passing around the pointer to the header.

This fixes NAND boot on OMAP3 BeagleBoard.

Signed-off-by: default avatarRoger Quadros <rogerq@kernel.org>
Reviewed-By: default avatarMichael Trimarchi <michael@amarulasolutions.com>
parent 0abe3323
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment