summaryrefslogtreecommitdiff
path: root/sys/scsi/scsi_ioctl.c
diff options
context:
space:
mode:
authorConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>2001-04-30 21:21:55 +0000
committerConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>2001-04-30 21:21:55 +0000
commitf9ed35d7cecd8ac771ff60d925bec985ab42d92b (patch)
treee4061e5f02d0f16a7ce67dc9e780787f7c50a648 /sys/scsi/scsi_ioctl.c
parent2bee84eccbec0b56b008a589554b07cd3303a446 (diff)
Pass IOCTL to adapter device if not understood by SCSI layer.
Diffstat (limited to 'sys/scsi/scsi_ioctl.c')
-rw-r--r--sys/scsi/scsi_ioctl.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/scsi/scsi_ioctl.c b/sys/scsi/scsi_ioctl.c
index 254a9d4c24a..4c464645dee 100644
--- a/sys/scsi/scsi_ioctl.c
+++ b/sys/scsi/scsi_ioctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsi_ioctl.c,v 1.11 2001/01/25 03:50:53 todd Exp $ */
+/* $OpenBSD: scsi_ioctl.c,v 1.12 2001/04/30 21:21:54 csapuntz Exp $ */
/* $NetBSD: scsi_ioctl.c,v 1.23 1996/10/12 23:23:17 christos Exp $ */
/*
@@ -416,6 +416,10 @@ scsi_do_safeioctl(sc_link, dev, cmd, addr, flag, p)
case SCIOCDECONFIG:
return EINVAL;
default:
- return ENOTTY;
+ if (sc_link->adapter->ioctl)
+ return (sc_link->adapter->ioctl)(sc_link, cmd, addr,
+ flag);
+ else
+ return ENOTTY;
}
}