diff options
| -rw-r--r-- | sys/cam/scsi/scsi_ses.c | 3 |
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); |
