Skip to contentSkip to conversation

scsi_transport_sas.c - make write attrs link_reset and hard_reset writeable

PATCH New Eric Moore 1 participant 1 message May 18, 2006 SCSI

lore
Share & tools
lore

Eric Moore

author
#0 lore raw

PATCH 1/1 scsi_transport_sas.c - make write attrs link_reset and hard_reset writeable

A couple write attributes in sas transport layer have a small bug that prevents them from being written to. Those attributes are the link_reset and write_reset. This is due the store field being set to NULL.

drivers/scsi/scsi_transport_sas.c +0 -1
@@ -977,7 +977,6 @@
 #define SETUP_TEMPLATE(attrb, field, perm, test)				\
 	i->private_##attrb[count] = class_device_attr_##field;		\
 	i->private_##attrb[count].attr.mode = perm;			\
-	i->private_##attrb[count].store = NULL;				\
 	i->attrb[count] = &i->private_##attrb[count];			\
 	if (test)							\
 		count++