aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Jacob <mjacob@FreeBSD.org>2000-06-18 04:19:08 +0000
committerMatt Jacob <mjacob@FreeBSD.org>2000-06-18 04:19:08 +0000
commitfb75f116db631c7051023627cbcabdd3986519fb (patch)
tree7d423ea5b6edc11568f866be8b7fccdc85bd8b77
parent6b13b96dad7d98a25ca566d255223859b4d40960 (diff)
Notes
-rw-r--r--sys/cam/scsi/scsi_ses.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/cam/scsi/scsi_ses.c b/sys/cam/scsi/scsi_ses.c
index b8048a99017cd..ea6caa56f79fb 100644
--- a/sys/cam/scsi/scsi_ses.c
+++ b/sys/cam/scsi/scsi_ses.c
@@ -749,6 +749,9 @@ ses_type(void *buf, int buflen)
{
unsigned char *iqd = buf;
+ if (buflen == 0)
+ buflen = 256; /* per SPC-2 */
+
if (buflen < 8+SEN_ID_LEN)
return (SES_NONE);