AMD Inagua: PlatformGnbPcie.c: Allocate exact needed size for buffer

The following commit

    commit d0790694b0a66353e5531715648ddaa1a6d577cb
    Author: Kerry Sheh <>
    Date:   Thu Jan 19 13:18:37 2012 +0800

        Inagua: Inagua GNB ddi lanes and pcie lanes config update


assigns lanes 4 and 5 to PCI device number 4, but does not
adapt the rest of the code.

After the commit above, the array `PortList []` only has four
elements, but the buffer size `AllocHeapParams.RequestedBufferSize`
is set to a size as it still has five elements.

Correct that by setting the size for four array elements.


Change-Id: I3ff07f308ffd417d2bf73117eda9da2a1a05f199
Reported-by: Bruce Griffith <>
Signed-off-by: Paul Menzel <>
Tested-by: build bot (Jenkins)
Reviewed-by: Bruce Griffith <>
1 file changed