We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f50974e commit e35f571Copy full SHA for e35f571
drivers/cxl/core/mbox.c
@@ -355,11 +355,13 @@ static int cxl_to_mem_cmd(struct cxl_mem_command *mem_cmd,
355
return -EBUSY;
356
357
/* Check the input buffer is the expected size */
358
- if (info->size_in != send_cmd->in.size)
+ if ((info->size_in != CXL_VARIABLE_PAYLOAD) &&
359
+ (info->size_in != send_cmd->in.size))
360
return -ENOMEM;
361
362
/* Check the output buffer is at least large enough */
- if (send_cmd->out.size < info->size_out)
363
+ if ((info->size_out != CXL_VARIABLE_PAYLOAD) &&
364
+ (send_cmd->out.size < info->size_out))
365
366
367
*mem_cmd = (struct cxl_mem_command) {
0 commit comments