Fix inquiry length detection for the ses(4) driver.
commit736b7569ed105025c88c01e96731c5dbb88a48e7
authorPeter Avalos <pavalos@dragonflybsd.org>
Sat, 17 Nov 2007 23:47:17 +0000 (17 23:47 +0000)
committerPeter Avalos <pavalos@dragonflybsd.org>
Sat, 17 Nov 2007 23:47:17 +0000 (17 23:47 +0000)
tree3612c9aafa583b1423d3fb157e1650dac86052ef
parente7bf16f4c6b27b6a085873a36ec65374f4eea3e6
Fix inquiry length detection for the ses(4) driver.
It was using the inq_len member of the ccb_getdev structure, but that
value was never filled in.

So we now get the length from the inquiry data returned by the drive.
(Since we will fetch as much inquiry data as the drive claims to support.)

Obtained-from: FreeBSD
sys/bus/cam/scsi/scsi_ses.c