diff --git a/drivers/tee/optee/rpc.c b/drivers/tee/optee/rpc.c index 12850016a36149..6de3fe7456a5bf 100644 --- a/drivers/tee/optee/rpc.c +++ b/drivers/tee/optee/rpc.c @@ -233,7 +233,7 @@ static void handle_rpc_func_cmd_shm_alloc(struct tee_context *ctx, case OPTEE_MSG_RPC_SHM_TYPE_KERNEL: shm = tee_shm_alloc(ctx, sz, TEE_SHM_MAPPED); break; - case OPTEE_MSG_RPC_SHM_TYPE_KERNEL_GLOBAL: + case OPTEE_MSG_RPC_SHM_TYPE_GLOBAL: shm = tee_shm_alloc(ctx, sz, TEE_SHM_MAPPED | TEE_SHM_DMA_BUF); break; default: