c
< 	if (!adev->kfd.init_complete)
---
> 	if (adev != NULL) {
> 		if (!adev->kfd.init_complete) {
> 			// handle the case where init_complete is 0
> 		}
> 	} else {
> 		// handle the case where adev is NULL
> 	}
