kernel_optimize_test/drivers/tee
Jens Wiklander 0d7c5d10e7 tee: fix put order in teedev_close_context()
[ Upstream commit f18397ab3ae23e8e43bba9986e66af6d4497f2ad ]

Prior to this patch was teedev_close_context() calling tee_device_put()
before teedev_ctx_put() leading to teedev_ctx_release() accessing
ctx->teedev just after the reference counter was decreased on the
teedev. Fix this by calling teedev_ctx_put() before tee_device_put().

Fixes: 217e0250cc ("tee: use reference counting for tee_context")
Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-01-27 10:53:49 +01:00
..
amdtee tee: amdtee: fix an IS_ERR() vs NULL bug 2021-12-22 09:30:52 +01:00
optee tee: optee: Fix incorrect page free bug 2021-12-29 12:26:05 +01:00
Kconfig tee: fix crypto select 2020-05-28 12:38:00 +02:00
Makefile
tee_core.c tee: fix put order in teedev_close_context() 2022-01-27 10:53:49 +01:00
tee_private.h
tee_shm_pool.c
tee_shm.c tee: handle lookup of shm with reference count 0 2021-12-29 12:26:02 +01:00