]> git.proxmox.com Git - mirror_edk2.git/commit
SourceLevelDebugPkg/SmmDebugAgent: mMailboxPointer is used before set
authorJeff Fan <jeff.fan@intel.com>
Fri, 1 Apr 2016 04:53:06 +0000 (12:53 +0800)
committerJeff Fan <jeff.fan@intel.com>
Wed, 6 Apr 2016 01:13:18 +0000 (09:13 +0800)
commitf3ee38dd958d0bdbebc05441db15a84e70126552
tree145dfbccfa63282e9c15aca4d03ce9b0b61ea529
parentde70b8c51b996ebcfd010603729d7c925154d9ab
SourceLevelDebugPkg/SmmDebugAgent: mMailboxPointer is used before set

mMailboxPointer is used before it is initialization. This issue only happens
when SmmDebugAgent is initialized without PeiDebugAgent or DxeDebugAgent
initialization. The fix is to use Mailbox instead.

Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Hao Wu <hao.a.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgent/SmmDebugAgentLib.c