diff
 void kgd2kfd_suspend(struct kfd_dev *kfd, bool run_pm)
 {
     struct kfd_node *node;
     int i;
     int count;
 
-    if (!kfd->init_complete)
+    if (!kfd || !kfd->init_complete)
         return;
