Fix inquiry length detection for the ses(4) driver.
commitd878b74657fbf7d97500a88424f00dd556728c4a
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)
tree73eda6ec43486b5b963c6877ce4e387fac7f57a8
parentf7507c39137fdc62f90a1360383c1aca078b2b44
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