linux-uconsole/drivers/tee
Jens Wiklander 465eecd2b3 tee: fix compiler warning in tee_shm_register()
[ Upstream commit eccd743970 ]

Include <linux/uaccess.h> to avoid the warning:
   drivers/tee/tee_shm.c: In function 'tee_shm_register':
>> drivers/tee/tee_shm.c:242:14: error: implicit declaration of function 'access_ok' [-Werror=implicit-function-declaration]
     242 |         if (!access_ok((void __user *)addr, length))
         |              ^~~~~~~~~
   cc1: some warnings being treated as errors

Fixes: 573ae4f13f ("tee: add overflow check in register_shm_helper()")
Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-09-15 11:32:04 +02:00
..
amdtee tee: amdtee: fix an IS_ERR() vs NULL bug 2021-12-22 09:30:52 +01:00
optee optee: use driver internal tee_context for some rpc 2022-03-02 11:42:47 +01:00
Kconfig
Makefile
tee_core.c tee: fix memory leak in tee_shm_register() 2022-08-25 11:38:24 +02:00
tee_private.h
tee_shm.c tee: fix compiler warning in tee_shm_register() 2022-09-15 11:32:04 +02:00
tee_shm_pool.c