]> git.proxmox.com Git - mirror_edk2.git/commit
IntelFrameworkModulePkg/LegacyBootMaintUiLib: Add NULL pointer check
authorBi, Dandan <dandan.bi@intel.com>
Fri, 25 Aug 2017 02:58:36 +0000 (10:58 +0800)
committerEric Dong <eric.dong@intel.com>
Mon, 28 Aug 2017 07:13:50 +0000 (15:13 +0800)
commitef5e0db22cdd73e9727afcaa5c7fe8e55b7b3671
tree18fd0599c70eaf137b23f169278f6d06e10d3061
parent34b6a0e22210b825ca5ea8447ac8bc513c0c96c5
IntelFrameworkModulePkg/LegacyBootMaintUiLib: Add NULL pointer check

mLegacyBootOptionPrivate pointer is initialized in Constructor function
with if condition check, but it's used in Destructor function directly
without any check. Now add the NULL pointer check.

Cc: Eric Dong <eric.dong@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
IntelFrameworkModulePkg/Library/LegacyBootMaintUiLib/LegacyBootMaintUi.c