|
@@ -947,7 +947,7 @@ static CXLRetCode cmd_logs_get_log(const struct cxl_cmd *cmd,
|
|
* the only possible failure would be if the mailbox itself isn't big
|
|
* the only possible failure would be if the mailbox itself isn't big
|
|
* enough.
|
|
* enough.
|
|
*/
|
|
*/
|
|
- if (get_log->offset + get_log->length > cci->payload_max) {
|
|
|
|
|
|
+ if (get_log->length > cci->payload_max) {
|
|
return CXL_MBOX_INVALID_INPUT;
|
|
return CXL_MBOX_INVALID_INPUT;
|
|
}
|
|
}
|
|
|
|
|