efi: Fix a memory map buffer release
authorShao Miller <sha0.miller@gmail.com>
Tue, 30 Oct 2012 21:41:09 +0000 (17:41 -0400)
committerMatt Fleming <matt.fleming@intel.com>
Wed, 31 Oct 2012 16:12:53 +0000 (16:12 +0000)
commit90be055dcd959eecb0253e6e7a699a074a6f345f
tree24a45544b818fe6a045b7f9477fb6e2479c513a7
parent40c78259c9d9d668174fc4e93303fd11463a3c31
efi: Fix a memory map buffer release

We need to track the beginning of the memory map buffer so that we
free the correct pointer at the end of efi_scan_memory(). Previously
we were passing a pointer that pointed after the memory map, resulting
in a crash when running syslinux.efi under DUET.

Signed-off-by: Shao Miller <sha0.miller@gmail.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com> [Added changelog]
efi/main.c