tee: amdtee: fix an IS_ERR() vs NULL bug
The __get_free_pages() function does not return error pointers it returns NULL so fix this condition to avoid a NULL dereference. Fixes: 757cc3e9 ("tee: add AMD-TEE driver") Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com> Acked-by: NRijo Thomas <Rijo-john.Thomas@amd.com> Signed-off-by: NJens Wiklander <jens.wiklander@linaro.org>
Showing
想要评论请 注册 或 登录