summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2011-12-22 16:12:30 -0500
committerKay Sievers <kay.sievers@vrfy.org>2011-12-23 00:33:09 +0100
commitdb634679ad58b3205910c969ac5359b1d6f625ad (patch)
tree305a6b7a6bcb149ac8f7b07fdf3478ba9ceb55f2
parentaa29418a13dc1e1eedca702663e733cc8d9f9859 (diff)
[PATCH[ udev: ata_id: Fix length of INQUIRY command
SCSI INQUIRY commands are 6 bytes long, not 12 bytes.
-rw-r--r--extras/ata_id/ata_id.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/ata_id/ata_id.c b/extras/ata_id/ata_id.c
index e38a7d1aa5..64df86c23a 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;