summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2013-10-19 13:03:43 +0000
committerdlg <dlg@openbsd.org>2013-10-19 13:03:43 +0000
commit5e237fafe44e8f1578def82a1699a989c7aa08b5 (patch)
treec80a971cf53f51f3eeaae1fbca4127feac18fb7a
parentIn an ideal world, we would use splsoftnet() for all the interface (diff)
downloadwireguard-openbsd-5e237fafe44e8f1578def82a1699a989c7aa08b5.tar.xz
wireguard-openbsd-5e237fafe44e8f1578def82a1699a989c7aa08b5.zip
we dont fake VPD INQUIRY pages, so fail on requests for them.
-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;