tee: amdtee: synchronize access to shm list
authorRijo Thomas <Rijo-john.Thomas@amd.com>
Wed, 4 Nov 2020 06:26:10 +0000 (11:56 +0530)
committerJens Wiklander <jens.wiklander@linaro.org>
Mon, 9 Nov 2020 07:59:00 +0000 (08:59 +0100)
commitbe353be27874f40837327d9a39e3ad2149ab66d3
tree7cbc8335376bcc367e79204311128405a11930ca
parentff1f855804cdbbb6db7b9b6df6cab783d1a40d66
tee: amdtee: synchronize access to shm list

Synchronize access to shm or shared memory buffer list to prevent
race conditions due to concurrent updates to shared shm list by
multiple threads.

Fixes: 757cc3e9ff1d ("tee: add AMD-TEE driver")
Reviewed-by: Devaraj Rangasamy <Devaraj.Rangasamy@amd.com>
Signed-off-by: Rijo Thomas <Rijo-john.Thomas@amd.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
drivers/tee/amdtee/amdtee_private.h
drivers/tee/amdtee/core.c