IB/hfi1: fix array termination by appending NULL to attr array
Subsystems (2)
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
@@ -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
A message that is not in the archive (sent off-list or not yet received): 1494431652-67941-1-git-send-email-robers97-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Leon Romanovsky
Reviewed-byQuoted 9 lines · Steven L. Roberts
From: "Steven L. Roberts" <[email protected]>
This fixes a kernel panic when loading the hfi driver as a dynamic module.
Signed-off-by Steven L Roberts <[email protected]>--- drivers/infiniband/hw/hfi1/sysfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Thanks a lot,
Dennis Dalessandro
Acked-byQuoted 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.
Signed-off-by Steven L Roberts <[email protected]>
--
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
A message that is not in the archive (sent off-list or not yet received): e6273c0a-1dd5-ff53-87ad-e1c4181a01db-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org
Doug Ledford
AppliedQuoted 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.
Signed-off-by Steven L Roberts <[email protected]>
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