diff --git a/drivers/tee/optee/call.c b/drivers/tee/optee/call.c index 2082e632adff98f8011ebba26fb8eec2e421e88b..78ac6fcef8a4199956050a1d14973c184ed53449 100644 --- a/drivers/tee/optee/call.c +++ b/drivers/tee/optee/call.c @@ -362,7 +362,7 @@ int optee_check_mem_type(unsigned long start, size_t num_pages) * Allow kernel address to register with OP-TEE as kernel * pages are configured as normal memory only. */ - if (virt_addr_valid(start) || is_vmalloc_addr((void *)start)) + if (virt_addr_valid((void *)start) || is_vmalloc_addr((void *)start)) return 0; mmap_read_lock(mm);