Skip to content

Commit 3786dc4

Browse files
Himanshu MadhaniNicholas Bellinger
authored andcommitted
qla2xxx: Fix regression introduced by target configFS changes
this patch fixes following regression # targetcli [Errno 13] Permission denied: '/sys/kernel/config/target/qla2xxx/21:00:00:0e:1e:08:c7:20/tpgt_1/enable' Fixes: 2eafd72 ("target: use per-attribute show and store methods") Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com> Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
1 parent 3a66d7d commit 3786dc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/qla2xxx/tcm_qla2xxx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,7 @@ static ssize_t tcm_qla2xxx_tpg_fabric_prot_type_show(struct config_item *item,
902902
return sprintf(page, "%d\n", tpg->tpg_attrib.fabric_prot_type);
903903
}
904904

905-
CONFIGFS_ATTR_WO(tcm_qla2xxx_tpg_, enable);
905+
CONFIGFS_ATTR(tcm_qla2xxx_tpg_, enable);
906906
CONFIGFS_ATTR_RO(tcm_qla2xxx_tpg_, dynamic_sessions);
907907
CONFIGFS_ATTR(tcm_qla2xxx_tpg_, fabric_prot_type);
908908

0 commit comments

Comments
 (0)