aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/cxl/sysfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/cxl/sysfs.c')
-rw-r--r--drivers/misc/cxl/sysfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/misc/cxl/sysfs.c b/drivers/misc/cxl/sysfs.c
index 25868c2ec03e..02006f7109a8 100644
--- a/drivers/misc/cxl/sysfs.c
+++ b/drivers/misc/cxl/sysfs.c
@@ -592,6 +592,8 @@ int cxl_sysfs_afu_add(struct cxl_afu *afu)
592 592
593 /* conditionally create the add the binary file for error info buffer */ 593 /* conditionally create the add the binary file for error info buffer */
594 if (afu->eb_len) { 594 if (afu->eb_len) {
595 sysfs_attr_init(&afu->attr_eb.attr);
596
595 afu->attr_eb.attr.name = "afu_err_buff"; 597 afu->attr_eb.attr.name = "afu_err_buff";
596 afu->attr_eb.attr.mode = S_IRUGO; 598 afu->attr_eb.attr.mode = S_IRUGO;
597 afu->attr_eb.size = afu->eb_len; 599 afu->attr_eb.size = afu->eb_len;