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