Skip to contentSkip to conversation

"structure has no member named `tag'"

ide-scsi Douglas Gilbert 1 participant 1 message Dec 3, 2002 SCSI

lore
Share & tools
lore
#0 lore raw

"Rusty Lynch" <[email protected]> wrote

Quoted 6 lines

There was a discussion on this at
http://marc.theaimsgroup.com/?t=103861087100001&r=1&w=2

To get past this you can just change the line to compare ->name instead ->tag until the real fix lands.

For lk 2.5.50-bk3 that attached patch should work.

Doug Gilbert

drivers/scsi/ide-scsi.c2550mike renamed from drivers/scsi/ide-scsi.c +1 -1
@@ -764,7 +764,7 @@
 
 	if (disk) {
 		struct Scsi_Device_Template **p = disk->private_data;
-		if (strcmp((*p)->tag, "sg") == 0)
+		if (strcmp((*p)->scsi_driverfs_driver.name, "sg") == 0)
 			return test_bit(IDESCSI_SG_TRANSFORM, &scsi->transform);
 	}
 	return test_bit(IDESCSI_TRANSFORM, &scsi->transform);