diff
+#include <assert.h>
+
 void kgd2kfd_suspend(struct kfd_dev *kfd, bool run_pm)
 {
+    assert(kfd != NULL);
     struct kfd_node *node;
     int i;
     int count;
