diff options
| author | 2012-02-13 16:18:15 -0800 | |
|---|---|---|
| committer | 2012-02-25 14:37:49 -0800 | |
| commit | 089461dda1770c10fea0b988ff74519a9be81d7e (patch) | |
| tree | 4e1a644fe2a32ae3ffa22c52673060e617b2e692 /scripts/checkstack.pl | |
| parent | target: Fix up handling of short INQUIRY buffers (diff) | |
target: Set peripheral device type consistently in INQUIRY response
Current code sets the peripheral device type to 0x3f == "not present
unknown" for virtual LUN 0 for standard INQUIRY commands, but leaves it
as 0 == "connected direct access block" for VPD INQUIRY commands. This
is just because the check for LUN 0 only happens in some code paths.
Make our peripheral device type consistent by moving the LUN 0 check
into the common emulate_inquiry() code.
Signed-off-by: Roland Dreier <roland@purestorage.com>
Cc: stable@vger.kernel.org
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'scripts/checkstack.pl')
0 files changed, 0 insertions, 0 deletions
