Skip to content

Commit

Permalink
esp: correctly fill bus id with requested lun
Browse files Browse the repository at this point in the history
This bug showed up after 1455084, and
may be seen only on operating systems *not* using DMA to give commands
to SCSI adapter.

Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
  • Loading branch information
hpoussin authored and blueswirl committed Jul 2, 2011
1 parent f74b32d commit 75ef849
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/esp.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ static uint32_t get_cmd(ESPState *s, uint8_t *buf)
} else {
dmalen = s->ti_size;
memcpy(buf, s->ti_buf, dmalen);
buf[0] = 0;
buf[0] = buf[2] >> 5;
}
DPRINTF("get_cmd: len %d target %d\n", dmalen, target);

Expand Down

0 comments on commit 75ef849

Please sign in to comment.