regression 1014: out of bounds memref tests ensure TA is not reached

Fix regression 1014 (SDP) similar to commit 48fa1b25eed7 ("regression
1018: out of bounds memref tests ensure TA is not reached").

Signed-off-by: Jerome Forissier <jerome@forissier.org>
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
diff --git a/host/xtest/sdp_basic.c b/host/xtest/sdp_basic.c
index b539dc7..63e643a 100644
--- a/host/xtest/sdp_basic.c
+++ b/host/xtest/sdp_basic.c
@@ -565,12 +565,12 @@
 
 	/*
 	 * Invocation with invalid references should be nicely rejected by
-	 * the communication layer.
+	 * the TEE.
 	 * Invocation with valid references should reach the TA, whatever
 	 * result is.
 	 */
 	if ((valid_ref && orig != TEEC_ORIGIN_TRUSTED_APP) ||
-	    (!valid_ref && ((orig != TEEC_ORIGIN_COMMS) ||
+	    (!valid_ref && ((orig == TEEC_ORIGIN_TRUSTED_APP) ||
 			    (teerc != TEEC_ERROR_GENERIC &&
 			     teerc != TEEC_ERROR_BAD_PARAMETERS))))
 		goto error;