mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 15:33:28 +00:00
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 <[email protected]>
Acked-by: Rijo Thomas <[email protected]>
Signed-off-by: Jens Wiklander <[email protected]>