[PATCH[ udev: ata_id: Fix length of INQUIRY command

SCSI INQUIRY commands are 6 bytes long, not 12 bytes.
This commit is contained in:
Alan Stern
2011-12-23 00:33:09 +01:00
committed by Kay Sievers
parent aa29418a13
commit db634679ad
+1 -1
View File
@@ -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;