aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorImre Kis <imre.kis@arm.com>2021-01-12 22:23:17 +0100
committerImre Kis <imre.kis@arm.com>2021-01-13 14:56:43 +0100
commit3924b1b22e28014e0905ce80cd4c4dae10a6bca5 (patch)
tree3190fc2d0ad386d9b68a793c74a5a470f40c5e20
parentce67e6537ca226c1113527f38069995839b47af5 (diff)
downloadtrusted-services-3924b1b22e28014e0905ce80cd4c4dae10a6bca5.tar.gz
libsp: Fix RXTX buffer page count range check
Accepting the maximum page count defined by the FF-A specification. Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: I0200ee76bd5cf9537eafa5046880238f6e64a231
-rw-r--r--components/messaging/ffa/libsp/sp_rxtx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/messaging/ffa/libsp/sp_rxtx.c b/components/messaging/ffa/libsp/sp_rxtx.c
index e215610..50ebea0 100644
--- a/components/messaging/ffa/libsp/sp_rxtx.c
+++ b/components/messaging/ffa/libsp/sp_rxtx.c
@@ -45,7 +45,7 @@ sp_result sp_rxtx_buffer_map(void *tx_buffer, const void *rx_buffer,
/* Checking max page count for RXTX buffers */
page_count = size / FFA_RXTX_MAP_PAGE_SIZE;
- if (page_count >= FFA_RXTX_MAP_PAGE_COUNT_MAX)
+ if (page_count > FFA_RXTX_MAP_PAGE_COUNT_MAX)
return SP_RESULT_INVALID_PARAMETERS;
/* Mapping the buffers */