Skip to content

Commit

Permalink
scsi: inquiry should respond to invalid LUNs and set peripheral quali…
Browse files Browse the repository at this point in the history
…fier and peripheral device-type fields to 0x7F. Fixes #127
  • Loading branch information
erichelgeson committed Feb 23, 2024
1 parent d63dd81 commit 0857bc6
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lib/SCSI2SD/src/firmware/scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -413,14 +413,7 @@ static void process_Command()
}
else if (command == 0x12)
{
if(scsiDev.lun)
{
scsiDev.target->sense.code = ILLEGAL_REQUEST;
scsiDev.target->sense.asc = LOGICAL_UNIT_NOT_SUPPORTED;
enter_Status(CHECK_CONDITION);
} else {
s2s_scsiInquiry();
}
s2s_scsiInquiry();
}
else if (command == 0x03)
{
Expand Down

0 comments on commit 0857bc6

Please sign in to comment.