WSL2-Linux-Kernel/drivers/tee
Jens Wiklander 815570353f tee: fix put order in teedev_close_context()
[ Upstream commit f18397ab3a ]

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 11:03:12 +01:00
..
amdtee
optee tee: optee: Fix incorrect page free bug 2021-12-29 12:28:59 +01:00
Kconfig
Makefile
tee_core.c tee: fix put order in teedev_close_context() 2022-01-27 11:03:12 +01:00
tee_private.h
tee_shm.c
tee_shm_pool.c