diff options
author | Hao Wu <hao.a.wu@intel.com> | 2016-08-26 14:39:37 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2016-09-06 15:31:12 +0800 |
commit | 6fe39780140f9f429c97a71ca3bfa4e16e779793 (patch) | |
tree | 8bfc79e662e3f84e99277cb94fc36d537a08c4a0 /BaseTools/Source/Python/Common/ToolDefClassObject.py | |
parent | bc54e50e0fe03c570014f363b547426913e92449 (diff) | |
download | edk2-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/ToolDefClassObject.py')
0 files changed, 0 insertions, 0 deletions