Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151719582
D48685.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
576 B
Referenced Files
None
Subscribers
None
D48685.diff
View Options
diff --git a/sys/cam/scsi/scsi_all.c b/sys/cam/scsi/scsi_all.c
--- a/sys/cam/scsi/scsi_all.c
+++ b/sys/cam/scsi/scsi_all.c
@@ -3419,7 +3419,15 @@
ascentrycomp);
if (found_entry) {
+ /*
+ * If we get to the SSQ_RANGE entry, we're one too
+ * far. The prior entry is the interesting one, since it
+ * contains the string to print, etc. Only the top end
+ * range is interesting in this entry.
+ */
*asc_entry = (struct asc_table_entry *)found_entry;
+ if (((*asc_entry)->action & SSQ_RANGE) != 0)
+ (*asc_entry)--;
break;
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 11, 6:19 AM (20 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31272986
Default Alt Text
D48685.diff (576 B)
Attached To
Mode
D48685: cam: Fix off by one error in ASC/ASCQ lookup
Attached
Detach File
Event Timeline
Log In to Comment