WSL2-Linux-Kernel/drivers/tee/amdtee
Dan Carpenter 832f3655c6 tee: amdtee: fix an IS_ERR() vs NULL bug
[ Upstream commit 9d7482771f ]

The __get_free_pages() function does not return error pointers it returns
NULL so fix this condition to avoid a NULL dereference.

Fixes: 757cc3e9ff ("tee: add AMD-TEE driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Rijo Thomas <Rijo-john.Thomas@amd.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-12-22 09:32:38 +01:00
..
Kconfig tee: amdtee: amdtee depends on CRYPTO_DEV_CCP_DD 2020-02-13 16:55:04 +08:00
Makefile
amdtee_if.h
amdtee_private.h tee: amdtee: unload TA only when its refcount becomes 0 2021-05-05 13:00:11 +02:00
call.c tee: amdtee: unload TA only when its refcount becomes 0 2021-05-05 13:00:11 +02:00
core.c tee: amdtee: fix an IS_ERR() vs NULL bug 2021-12-22 09:32:38 +01:00
shm_pool.c