summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2007-02-19 11:57:45 +0000
committerdlg <dlg@openbsd.org>2007-02-19 11:57:45 +0000
commit22d84e3385d6bfccb15d961124f73dce1bce2a25 (patch)
treee7d4dc612e275e274f7c05f8b1d46f78f7a73381
parentREQUEST_SENSE will say there is no sense data. (diff)
downloadwireguard-openbsd-22d84e3385d6bfccb15d961124f73dce1bce2a25.tar.xz
wireguard-openbsd-22d84e3385d6bfccb15d961124f73dce1bce2a25.zip
oops, i should have tried to compile the REQUEST_SENSE handling before
committing it.
-rw-r--r--sys/dev/ata/atascsi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ata/atascsi.c b/sys/dev/ata/atascsi.c
index 7d055dc1631..11d3fad099a 100644
--- a/sys/dev/ata/atascsi.c
+++ b/sys/dev/ata/atascsi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: atascsi.c,v 1.4 2007/02/19 11:55:04 dlg Exp $ */
+/* $OpenBSD: atascsi.c,v 1.5 2007/02/19 11:57:45 dlg Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -216,7 +216,8 @@ atascsi_disk_capacity(struct scsi_xfer *xs)
int
atascsi_disk_sense(struct scsi_xfer *xs)
{
- struct scsi_sense_data *sd = xs->data;
+ struct scsi_sense_data *sd = (struct scsi_sense_data *)xs->data;
+ int s;
bzero(xs->data, xs->datalen);
/* check datalen > sizeof(struct scsi_sense_data)? */