The __get_free_pages() function does not return error pointers it returns
NULL so fix this condition to avoid a NULL dereference.
Fixes: 757cc3e9ff1d ("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>
|
||
|---|---|---|
| .. | ||
| amdtee_if.h | ||
| amdtee_private.h | ||
| call.c | ||
| core.c | ||
| Kconfig | ||
| Makefile | ||
| shm_pool.c | ||