
-	lockdep_assert_held(&iocg->waitq.lock);
+	if (iocg) {
+		lockdep_assert_held(&iocg->waitq.lock);
+	}
