diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2014-09-16 20:23:43 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2014-09-16 20:23:43 +0000 |
commit | 79cb2ae21c6e910abecd1ce143b45569fd5f29ed (patch) | |
tree | b725e08bf111f95b1c99d7d5c4f53acaf9b84951 /sys | |
parent | 6ebaa849b96337e7635a77a7a6045a5c29279bdb (diff) |
Check the right descriptor field when polling for completion.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/sparc64/dev/vdsk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc64/dev/vdsk.c b/sys/arch/sparc64/dev/vdsk.c index 0e0c5004ad7..b75c1114b13 100644 --- a/sys/arch/sparc64/dev/vdsk.c +++ b/sys/arch/sparc64/dev/vdsk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vdsk.c,v 1.42 2014/09/16 15:59:35 kettenis Exp $ */ +/* $OpenBSD: vdsk.c,v 1.43 2014/09/16 20:23:42 kettenis Exp $ */ /* * Copyright (c) 2009, 2011 Mark Kettenis * @@ -997,7 +997,7 @@ vdsk_scsi_cmd(struct scsi_xfer *xs) timeout = 1000; do { if (vdsk_rx_intr(sc) && - sc->sc_vd->vd_desc[desc].status == VIO_DESC_FREE) + sc->sc_vd->vd_desc[desc].hdr.dstate == VIO_DESC_FREE) break; delay(1000); |