AMD Inagua: PlatformGnbPcie.c: Allocate exact needed size for buffer
authorBruce Griffith <Bruce.Griffith@se-eng.com>
Thu, 16 May 2013 05:31:56 +0000 (23:31 -0600)
committerBruce Griffith <Bruce.Griffith@se-eng.com>
Fri, 17 May 2013 16:50:23 +0000 (18:50 +0200)
commitd433acb8164aa836aadd14e00d11ed4dc31b029d
tree550412ea6594a63ff51d3d25f627aabd1a29f986
parent05f3b117dd44776ed17bc57318f260766039b7e8
AMD Inagua: PlatformGnbPcie.c: Allocate exact needed size for buffer

The following commit

    commit 05f3b117dd44776ed17bc57318f260766039b7e8
    Author: Paul Menzel <paulepanter@users.sourceforge.net>
    Date:   Tue May 14 09:28:26 2013 +0200

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

        Reviewed-on: http://review.coreboot.org/3246

changed one calculation for the size of the array PortList[] to
reflect only four elements, but neglected three additional calculations
of the size of the same table.

Correct that by setting the size for four array elements in all four
calculations.

[1] http://review.coreboot.org/#/c/3239/3/src/mainboard/amd/inagua/PlatformGnbPcie.c

Change-Id: Ib66b7b2b388d847888663e9eb6d1c8c9d50b9939
Reported-by: Bruce Griffith <Bruce.Griffith@se-eng.com>
Signed-off-by: Bruce Griffith <Bruce.Griffith@se-eng.com>
Reviewed-on: http://review.coreboot.org/3250
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martin.roth@se-eng.com>
src/mainboard/amd/inagua/PlatformGnbPcie.c