summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2013-10-19 13:03:44 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2013-10-19 13:03:44 +0000
commit86c053f2f5cf5c919c9cab255cc74aef2894d353 (patch)
tree9e0bf92d7c9c000ed13dd5bbdcc0211bc8c34f2a /sys/dev
parent45df41ff94d723df9fefb6fb82bc6d0dca556e99 (diff)
we dont fake VPD INQUIRY pages, so fail on requests for them.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/ami.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/ic/ami.c b/sys/dev/ic/ami.c
index 0ea493a9a58..6099be53d14 100644
--- a/sys/dev/ic/ami.c
+++ b/sys/dev/ic/ami.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ami.c,v 1.225 2013/06/11 16:42:14 deraadt Exp $ */
+/* $OpenBSD: ami.c,v 1.226 2013/10/19 13:03:43 dlg Exp $ */
/*
* Copyright (c) 2001 Michael Shalayeff
@@ -1398,6 +1398,12 @@ ami_scsi_cmd(struct scsi_xfer *xs)
return;
case INQUIRY:
+ if (ISSET(((struct scsi_inquiry *)xs->cmd)->flags, SI_EVPD)) {
+ xs->error = XS_DRIVER_STUFFUP;
+ scsi_done(xs);
+ return;
+ }
+
AMI_DPRINTF(AMI_D_CMD, ("INQUIRY tgt %d ", target));
bzero(&inq, sizeof(inq));
inq.device = T_DIRECT;