Skip to content
Commit 5dd12a15 authored by Zhang, Shenglei's avatar Zhang, Shenglei Committed by Nate DeSimone
Browse files

MinPlatformPkg/AcpiTables: Initialize variables before used



MadtStructs, NewMadtTable and MaxMadtStructCount are not initialized
before used or at the proper place. So assign values to them at the
beginning and change the logic when freeing MadtStructs and
NewMadtTable.

Cc: Michael Kubacki <michael.a.kubacki@intel.com>
Cc: Chasel Chiu <chasel.chiu@intel.com>
Cc: Nate DeSimone <nathaniel.l.desimone@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: default avatarShenglei Zhang <shenglei.zhang@intel.com>
Reviewed-by: default avatarMichael Kubacki <michael.a.kubacki@intel.com>
Reviewed-by: default avatarChasel Chiu <chasel.chiu@intel.com>
Reviewed-by: default avatarNate DeSimone <nathaniel.l.desimone@intel.com>
parent c677e1d1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment