c
< 	if (!adev->kfd.init_complete)
---
> 	if (adev == NULL || adev->kfd.init_complete == 0)
