Memory for _manager is allocated using kzalloc() but the result is not checked.
I was led to scrutinize ttm_page_alloc_init() from a smatch warning:
drivers/gpu/drm/ttm/ttm_page_alloc.c:799 ttm_page_alloc_init() error: potential
null dereference '_manager'. (kzalloc returns null)
Cc: David Air
Memory for _manager is allocated using kzalloc() but the result is not checked.
I was led to scrutinize ttm_page_alloc_init() from a smatch warning:
drivers/gpu/drm/ttm/ttm_page_alloc.c:799 ttm_page_alloc_init() error: potential
null dereference '_manager'. (kzalloc returns null)
Cc: David Air