Fix breakage where we never were attaching SES devices because inq_len
was not being set > 0.
This commit is contained in:
parent
15756f138e
commit
4aba1e7406
@ -749,6 +749,9 @@ ses_type(void *buf, int buflen)
|
|||||||
{
|
{
|
||||||
unsigned char *iqd = buf;
|
unsigned char *iqd = buf;
|
||||||
|
|
||||||
|
if (buflen == 0)
|
||||||
|
buflen = 256; /* per SPC-2 */
|
||||||
|
|
||||||
if (buflen < 8+SEN_ID_LEN)
|
if (buflen < 8+SEN_ID_LEN)
|
||||||
return (SES_NONE);
|
return (SES_NONE);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user