diff --git a/drivers/gpu/drm/i915/gt/intel_gt_sysfs.c b/drivers/gpu/drm/i915/gt/intel_gt_sysfs.c index 33cba406b56..916d8cec2d1 100644 --- a/drivers/gpu/drm/i915/gt/intel_gt_sysfs.c +++ b/drivers/gpu/drm/i915/gt/intel_gt_sysfs.c @@ -3,6 +3,8 @@ * Copyright © 2022 Intel Corporation */ +#include "opt_ddb.h" + #include #include #include @@ -20,6 +22,14 @@ bool is_object_gt(struct kobject *kobj) { + // https://github.com/freebsd/drm-kmod/issues/280 + if (kobj->name == NULL) { + printf("kobj %p has NULL name\n", kobj); +#ifdef KDB + kdb_backtrace(); +#endif + return false; + } return !strncmp(kobj->name, "gt", 2); }