summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python/Common/VariableAttributes.py
diff options
context:
space:
mode:
authorHao Wu <hao.a.wu@intel.com>2016-08-26 14:39:37 +0800
committerHao Wu <hao.a.wu@intel.com>2016-09-06 15:31:12 +0800
commit6fe39780140f9f429c97a71ca3bfa4e16e779793 (patch)
tree8bfc79e662e3f84e99277cb94fc36d537a08c4a0 /BaseTools/Source/Python/Common/VariableAttributes.py
parentbc54e50e0fe03c570014f363b547426913e92449 (diff)
downloadedk2-platforms-6fe39780140f9f429c97a71ca3bfa4e16e779793.tar.xz
MdeModulePkg NvmExpressDxe: Avoid crashing 'Mode' during OpenProtocol
The gBS->OpenProtocol() calls to open EFI_NVM_EXPRESS_PASS_THRU_PROTOCOL in NvmExpress.c will crash the data in 'Mode' field of 'Private->Passthru'. The third parameter of gBS->OpenProtocol() is an output parameter that stores the address where a pointer to the corresponding Protocol Interface. The current code mistakenly pass '&Private->Passthru' (a pointer of the EFI_NVM_EXPRESS_PASS_THRU_PROTOCOL) as the third parameter. This will crash the data in 'Mode' filed. Cc: Feng Tian <feng.tian@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Feng Tian <feng.tian@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Common/VariableAttributes.py')
0 files changed, 0 insertions, 0 deletions