diff --git a/drivers/tee/optee/call.c b/drivers/tee/optee/call.c index 6554e06e053e..28f87cd8b3ed 100644 --- a/drivers/tee/optee/call.c +++ b/drivers/tee/optee/call.c @@ -512,7 +512,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);