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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



SCSI INQUIRY commands are 6 bytes long, not 12 bytes.

Index: udev-173/extras/ata_id/ata_id.c
===================================================================
--- udev-173.orig/extras/ata_id/ata_id.c
+++ udev-173/extras/ata_id/ata_id.c
@@ -52,7 +52,7 @@ static int disk_scsi_inquiry_command(int
 				     size_t   buf_len)
 {
 	struct sg_io_v4 io_v4;
-	uint8_t cdb[12];
+	uint8_t cdb[6];
 	uint8_t sense[32];
 	int ret;
 

--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux