Fix breakage where we never were attaching SES devices because inq_len
was not being set > 0.
This commit is contained in:
parent
6b13b96dad
commit
fb75f116db
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user