]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.c
Update Width check for < 0.
[mirror_edk2.git] / UefiCpuPkg / CpuIo2Smm / CpuIo2Smm.c
index da470a044aec3d63a873fbde3f6ff35516395444..64897723e53ed4ec533f3b349d3adcdee83a25b0 100644 (file)
@@ -135,7 +135,7 @@ CpuIoCheckParameter (
   //\r
   // Check to see if Width is in the valid range\r
   //\r
-  if (Width > SMM_IO_UINT64) {\r
+  if (Width < 0 || Width > SMM_IO_UINT64) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r