Skip to contentSkip to conversation

IB/hfi1: fix array termination by appending NULL to attr array

PATCH Applied Steven L. Roberts 4 participants 4 messages May 10, 2017 – Jun 1, 2017 2 messages not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 IB/hfi1: fix array termination by appending NULL to attr array

From: "Steven L. Roberts" <[email protected]>

This fixes a kernel panic when loading the hfi driver as a dynamic module.

---
 drivers/infiniband/hw/hfi1/sysfs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/infiniband/hw/hfi1/sysfs.c +2 -1
index 50d140d..2f3bbca 100644
@@ -196,7 +196,8 @@ static ssize_t cc_attr_store(struct kobject *kobj, struct attribute *attr,
 };
 
 static struct attribute *port_cc_default_attributes[] = {
-	&cc_prescan_attr.attr
+	&cc_prescan_attr.attr,
+	NULL
 };
 
 static struct kobj_type port_cc_ktype = {
Signature · 6 lines
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#3 lore raw
In reply to a message not in the archive
Quoted 5 lines · Steven L. Roberts

From: "Steven L. Roberts" <[email protected]>

This fixes a kernel panic when loading the hfi driver as a dynamic module.

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

Applied
#5 lore raw
In reply to a message not in the archive
Quoted 10 lines · Dennis Dalessandro
Quoted 7 lines · Steven L. Roberts

From: "Steven L. Roberts" <[email protected]>

This fixes a kernel panic when loading the hfi driver as a dynamic module.

Thanks, applied.

Signature · 9 lines
Doug Ledford <[email protected]>
    GPG KeyID: B826A3330E572FDD
   
Key fingerprint = AE6B 1BDA 122B 23B4 265B  1274 B826 A333 0E57 2FDD

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html