diff options
Diffstat (limited to 'common/pstore_commands.c')
-rw-r--r-- | common/pstore_commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/pstore_commands.c b/common/pstore_commands.c index 9717d3ccdb..4b09c9bfcd 100644 --- a/common/pstore_commands.c +++ b/common/pstore_commands.c @@ -37,7 +37,7 @@ int pstore_command_read(struct host_cmd_handler_args *args) int offset = p->offset % block_size; int bytes_left = p->size; - if (p->size > sizeof(EC_PARAM_SIZE)) + if (p->size > args->response_max) return EC_RES_INVALID_PARAM; while (bytes_left) { |