u-boot/disk
Stephen Warren 4715a81136 disk: part_efi: fix regression due to incorrect buffer usage
Commit deb5ca8027 "disk: part_efi: fix
**pgpt_pte == NULL" modified the code to pass "&gpt_head" to
is_gpt_valid() rather than the previous "gpt_head". However, gpt_head
is a pointer to the buffer, not the actual buffer, since it was allocated
using ALLOC_CACHE_ALIGN_BUFFER. This caused is_gpt_valid() to read the
disk block onto the stack rather than into the buffer, causing the
code to fail.

This change reverts that portion of the commit mentioned above.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Doug Anderson <dianders@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Tested-by: Anton Staaf <robotboy@chromium.org>
2011-12-05 22:23:21 +01:00
..
Makefile disk/part.c: Make features optional 2011-07-26 14:10:14 +02:00
part.c disk/part.c: fix potential stack overflow bug 2011-04-12 22:58:35 +02:00
part_amiga.c mflash: Initial mflash support 2009-04-03 23:47:06 +02:00
part_amiga.h * Code cleanup: 2003-06-27 21:31:46 +00:00
part_dos.c part_dos: fix crash with big sector size 2011-07-27 23:41:33 +02:00
part_dos.h part_dos: fix crash with big sector size 2011-07-27 23:41:33 +02:00
part_efi.c disk: part_efi: fix regression due to incorrect buffer usage 2011-12-05 22:23:21 +01:00
part_efi.h part: show efi partition name when print out partition info 2011-10-06 20:42:47 +02:00
part_iso.c Partition support: remove newline from partition name 2009-08-09 22:52:38 +02:00
part_iso.h Big white-space cleanup. 2008-05-21 00:14:08 +02:00
part_mac.c mflash: Initial mflash support 2009-04-03 23:47:06 +02:00
part_mac.h * Code cleanup: 2003-06-27 21:31:46 +00:00