diff options
author | Mike Marciniszyn <mike.marciniszyn@cornelisnetworks.com> | 2022-02-17 08:59:32 -0500 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2022-02-17 11:54:08 -0400 |
commit | 32f57cb1b2c8d6f20aefec7052b1bfeb7e3b69d4 (patch) | |
tree | a2910c4b597121228282de313c3057dc697b969e /drivers/infiniband | |
parent | dfd42facf1e4ada021b939b4e19c935dcdd55566 (diff) | |
download | linux-stable-32f57cb1b2c8d6f20aefec7052b1bfeb7e3b69d4.tar.gz linux-stable-32f57cb1b2c8d6f20aefec7052b1bfeb7e3b69d4.tar.bz2 linux-stable-32f57cb1b2c8d6f20aefec7052b1bfeb7e3b69d4.zip |
IB/qib: Fix duplicate sysfs directory name
The qib driver load has been failing with the following message:
sysfs: cannot create duplicate filename '/devices/pci0000:80/0000:80:02.0/0000:81:00.0/infiniband/qib0/ports/1/linkcontrol'
The patch below has two "linkcontrol" names causing the duplication.
Fix by using the correct "diag_counters" name on the second instance.
Fixes: 4a7aaf88c89f ("RDMA/qib: Use attributes for the port sysfs")
Link: https://lore.kernel.org/r/1645106372-23004-1-git-send-email-mike.marciniszyn@cornelisnetworks.com
Cc: <stable@vger.kernel.org>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@cornelisnetworks.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/qib/qib_sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/qib/qib_sysfs.c b/drivers/infiniband/hw/qib/qib_sysfs.c index 0a3b28142c05..41c272980f91 100644 --- a/drivers/infiniband/hw/qib/qib_sysfs.c +++ b/drivers/infiniband/hw/qib/qib_sysfs.c @@ -541,7 +541,7 @@ static struct attribute *port_diagc_attributes[] = { }; static const struct attribute_group port_diagc_group = { - .name = "linkcontrol", + .name = "diag_counters", .attrs = port_diagc_attributes, }; |