From db634679ad58b3205910c969ac5359b1d6f625ad Mon Sep 17 00:00:00 2001 From: Alan Stern Date: Thu, 22 Dec 2011 16:12:30 -0500 Subject: [PATCH] [PATCH[ udev: ata_id: Fix length of INQUIRY command SCSI INQUIRY commands are 6 bytes long, not 12 bytes. --- extras/ata_id/ata_id.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/ata_id/ata_id.c b/extras/ata_id/ata_id.c index e38a7d1a..64df86c2 100644 --- a/extras/ata_id/ata_id.c +++ b/extras/ata_id/ata_id.c @@ -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; -- 2.39.5