summaryrefslogtreecommitdiff
path: root/common/host_command.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/host_command.c')
-rw-r--r--common/host_command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/host_command.c b/common/host_command.c
index c8d01a3d6f..0900d9e1d4 100644
--- a/common/host_command.c
+++ b/common/host_command.c
@@ -838,7 +838,7 @@ static int command_host_command(int argc, char **argv)
int rv;
/* Use shared memory for command params space */
- if (shared_mem_acquire(EC_PROTO2_MAX_PARAM_SIZE, &cmd_params)) {
+ if (SHARED_MEM_ACQUIRE_CHECK(EC_PROTO2_MAX_PARAM_SIZE, &cmd_params)) {
ccputs("Can't acquire shared memory buffer.\n");
return EC_ERROR_UNKNOWN;
}