commit | 9d7482771fac8d8e38e763263f2ca0ca12dd22c6 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Wed Nov 24 17:54:04 2021 +0300 |
committer | Jens Wiklander <jens.wiklander@linaro.org> | Mon Nov 29 09:55:49 2021 +0100 |
tree | 9436a0008cfedb595e4c63a6146831cc98111458 | |
parent | d58071a8a76d779eedab38033ae4c821c30295a5 [diff] |
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: 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>