\r
Tpm2ExecutePendingTpmRequest() will receive untrusted input and do validation.\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
return TCG_PP_SUBMIT_REQUEST_TO_PREOS_NOT_IMPLEMENTED;\r
}\r
\r
- if (PpData.PPRequest != OperationRequest) {\r
+ if ((PpData.PPRequest != OperationRequest) ||\r
+ (PpData.PPRequestParameter != RequestParameter)) {\r
PpData.PPRequest = (UINT8)OperationRequest;\r
PpData.PPRequestParameter = RequestParameter;\r
DataSize = sizeof (EFI_TCG2_PHYSICAL_PRESENCE);\r