kernel_optimize_test/drivers/tee/amdtee
Dan Carpenter 640e28d618 tee: amdtee: fix an IS_ERR() vs NULL bug
[ Upstream commit 9d7482771fac8d8e38e763263f2ca0ca12dd22c6 ]

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:30:52 +01:00
..
amdtee_if.h
amdtee_private.h
call.c
core.c tee: amdtee: fix an IS_ERR() vs NULL bug 2021-12-22 09:30:52 +01:00
Kconfig
Makefile
shm_pool.c