]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/UefiBootManagerLib/BmPerformance.c
MdeModulePkg: Fix a performance data buffer overrun issue
[mirror_edk2.git] / MdeModulePkg / Library / UefiBootManagerLib / BmPerformance.c
index 7b13ec663c68f8c62ac9c98a4d45aae441d41595..e45c0bd23a5b3c4f735ba74ecc731ec3f4ef2564 100644 (file)
@@ -185,6 +185,11 @@ BmWriteBootToOsPerformanceData (
   //\r
   PERF_END(NULL, "BDS", NULL, 0);\r
 \r
+  //\r
+  // Reset the entry count\r
+  //\r
+  mBmPerfHeader.Count = 0;\r
+\r
   //\r
   // Retrieve time stamp count as early as possible\r
   //\r