summaryrefslogtreecommitdiff
path: root/sys/scsi
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2015-03-04 23:52:44 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2015-03-04 23:52:44 +0000
commit768b4919561b11780edda9eae702b62113f7750a (patch)
tree8d06154a20690957bd2c66180b51de5190107a05 /sys/scsi
parent71df66cd7955a8ab311da900fb9764cf763c06ae (diff)
prevent umass devices from being considered for paths.
ok deraadt@
Diffstat (limited to 'sys/scsi')
-rw-r--r--sys/scsi/mpath.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/scsi/mpath.c b/sys/scsi/mpath.c
index 177758eccc4..ca2e9a9f1bf 100644
--- a/sys/scsi/mpath.c
+++ b/sys/scsi/mpath.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpath.c,v 1.37 2014/09/14 14:17:26 jsg Exp $ */
+/* $OpenBSD: mpath.c,v 1.38 2015/03/04 23:52:43 dlg Exp $ */
/*
* Copyright (c) 2009 David Gwynne <dlg@openbsd.org>
@@ -427,6 +427,9 @@ mpath_path_probe(struct scsi_link *link)
if (link->id == NULL)
return (EINVAL);
+ if (ISSET(link->flags, SDEV_UMASS))
+ return (EINVAL);
+
if (mpath == link->adapter_softc)
return (ENXIO);