diff options
author | Arnd Bergmann <arnd@arndb.de> | 2022-05-30 14:44:25 +0200 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2022-05-30 14:44:27 +0200 |
commit | 9c76d723edd4f4d7d10b33e7e56f72ecbe6cee34 (patch) | |
tree | 8a027a7a613ee68f8c99e5615ecc79448996c33e /drivers/tee | |
parent | 212e3b6b8734655ac4edca979915d002b16f915c (diff) | |
parent | a3b9ecc805e9131476c719111fe347c7dbc0d1d1 (diff) | |
download | linux-stable-9c76d723edd4f4d7d10b33e7e56f72ecbe6cee34.tar.gz linux-stable-9c76d723edd4f4d7d10b33e7e56f72ecbe6cee34.tar.bz2 linux-stable-9c76d723edd4f4d7d10b33e7e56f72ecbe6cee34.zip |
Merge tag 'optee-warning-for-v5.19' of https://git.linaro.org/people/jens.wiklander/linux-tee into arm/late
Fix a compiler warning in OP-TEE driver
* tag 'optee-warning-for-v5.19' of https://git.linaro.org/people/jens.wiklander/linux-tee:
tee: optee: Pass a pointer to virt_addr_valid()
Link: https://lore.kernel.org/r/20220530112612.GA1511426@jade
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/tee')
-rw-r--r-- | drivers/tee/optee/call.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |