diff options
| author | Dan Carpenter <[email protected]> | 2021-11-24 17:54:04 +0300 |
|---|---|---|
| committer | Jens Wiklander <[email protected]> | 2021-11-29 09:55:49 +0100 |
| commit | 9d7482771fac8d8e38e763263f2ca0ca12dd22c6 (patch) | |
| tree | 9436a0008cfedb595e4c63a6146831cc98111458 /lib/test_fortify/write_overflow-strscpy.c | |
| 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 <[email protected]>
Acked-by: Rijo Thomas <[email protected]>
Signed-off-by: Jens Wiklander <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strscpy.c')
0 files changed, 0 insertions, 0 deletions