diff options
author | Tian, Feng <feng.tian@intel.com> | 2016-02-29 13:12:38 +0800 |
---|---|---|
committer | Feng Tian <feng.tian@intel.com> | 2016-03-01 14:37:07 +0800 |
commit | d2a2678b1c58e24bde44fed720b185b79984866c (patch) | |
tree | db2a82292fa1b2ea24f6b882f01e097a4c5f8e24 /MdeModulePkg/Bus | |
parent | 6796629dbb5a69d5dd70304f8760fd532bff5c5f (diff) | |
download | edk2-d2a2678b1c58e24bde44fed720b185b79984866c.tar.gz edk2-d2a2678b1c58e24bde44fed720b185b79984866c.tar.bz2 edk2-d2a2678b1c58e24bde44fed720b185b79984866c.zip |
MdeModulePkg/NvmExpress: Fix uninitialized field used in NVMe DiskInfo
Cc: Star Zeng <star.zeng@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
Diffstat (limited to 'MdeModulePkg/Bus')
-rw-r--r-- | MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpress.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpress.c b/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpress.c index 9938bf4541..c379e178e1 100644 --- a/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpress.c +++ b/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpress.c @@ -2,7 +2,7 @@ NvmExpressDxe driver is used to manage non-volatile memory subsystem which follows
NVM Express specification.
- Copyright (c) 2013 - 2015, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2013 - 2016, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -163,6 +163,7 @@ EnumerateNvmeDevNamespace ( //
// Create DiskInfo Protocol instance
//
+ CopyMem (&Device->NamespaceData, NamespaceData, sizeof (NVME_ADMIN_NAMESPACE_DATA));
InitializeDiskInfo (Device);
//
|