commit | 1262ac2cdd4d94522d4678c5cac910191f73e066 | [log] [tgz] |
---|---|---|
author | Andrew Scull <ascull@google.com> | Fri Apr 05 12:44:26 2019 +0100 |
committer | Andrew Scull <ascull@google.com> | Fri Apr 05 12:44:26 2019 +0100 |
tree | 78f557e5814d3665368942c10c15c1ce9e21a51c | |
parent | f825293e414d2d5e02a12cb6d2465d18041989ad [diff] [blame] |
Define the maximum payload size for a message. Change-Id: I3e4dd9a0fc075358c3b2f1a1cccb89a523d96c31
diff --git a/src/api.c b/src/api.c index daa6a81..ad566e2 100644 --- a/src/api.c +++ b/src/api.c
@@ -767,7 +767,7 @@ size = from_msg_replica.length; /* Limit the size of transfer. */ - if (size > HF_MAILBOX_SIZE - sizeof(struct spci_message)) { + if (size > SPCI_MSG_PAYLOAD_MAX) { return SPCI_INVALID_PARAMETERS; }