]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/NvmExpress: Fix uninitialized field used in NVMe DiskInfo
authorTian, Feng <feng.tian@intel.com>
Mon, 29 Feb 2016 05:12:38 +0000 (13:12 +0800)
committerFeng Tian <feng.tian@intel.com>
Tue, 1 Mar 2016 06:37:07 +0000 (14:37 +0800)
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>
MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpress.c

index 9938bf45417e32f16d52fd0f13b12bc43a26ab04..c379e178e183f755f66cabee5e79c73d53a44188 100644 (file)
@@ -2,7 +2,7 @@
   NvmExpressDxe driver is used to manage non-volatile memory subsystem which follows\r
   NVM Express specification.\r
 \r
   NvmExpressDxe driver is used to manage non-volatile memory subsystem which follows\r
   NVM Express specification.\r
 \r
-  Copyright (c) 2013 - 2015, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2013 - 2016, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -163,6 +163,7 @@ EnumerateNvmeDevNamespace (
     //\r
     // Create DiskInfo Protocol instance\r
     //\r
     //\r
     // Create DiskInfo Protocol instance\r
     //\r
+    CopyMem (&Device->NamespaceData, NamespaceData, sizeof (NVME_ADMIN_NAMESPACE_DATA));\r
     InitializeDiskInfo (Device);\r
 \r
     //\r
     InitializeDiskInfo (Device);\r
 \r
     //\r