drm/amdkfd: Fix kernel warning during topology setup
authorjsg <jsg@openbsd.org>
Fri, 13 Jan 2023 01:50:53 +0000 (01:50 +0000)
committerjsg <jsg@openbsd.org>
Fri, 13 Jan 2023 01:50:53 +0000 (01:50 +0000)
From Mukul Joshi
306888b1246bf44e703b6f1ccc746c2746c1a981 in linux-6.1.y/6.1.5
cf97eb7e47d4671084c7e114c5d88a3d0540ecbd in mainline linux

sys/dev/pci/drm/amd/amdkfd/kfd_topology.c

index 3f0a4a4..35a9b70 100644 (file)
@@ -801,7 +801,7 @@ static int kfd_build_sysfs_node_entry(struct kfd_topology_device *dev,
 
                p2plink->attr.name = "properties";
                p2plink->attr.mode = KFD_SYSFS_FILE_MODE;
-               sysfs_attr_init(&iolink->attr);
+               sysfs_attr_init(&p2plink->attr);
                ret = sysfs_create_file(p2plink->kobj, &p2plink->attr);
                if (ret < 0)
                        return ret;