[PATCH[ udev: ata_id: Fix length of INQUIRY command
SCSI INQUIRY commands are 6 bytes long, not 12 bytes.
This commit is contained in:
@@ -52,7 +52,7 @@ static int disk_scsi_inquiry_command(int fd,
|
||||
size_t buf_len)
|
||||
{
|
||||
struct sg_io_v4 io_v4;
|
||||
uint8_t cdb[12];
|
||||
uint8_t cdb[6];
|
||||
uint8_t sense[32];
|
||||
int ret;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user