diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2011-04-27 06:06:31 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2011-04-27 06:06:31 +0000 |
commit | 9c27e31f2f307319d43767cf2cd580d1d8815bde (patch) | |
tree | 9202cc7d5a0736f00f96e8a2baa8f69191b6b5e4 /sys/dev/ic/mpi.c | |
parent | 76d7bfad71d922fd95ed359b3f25afc4e34ad419 (diff) |
if getting the RAID header fails, dont stop the midlayer from trying to
issues scsi commands against that target. it might be a normal device and
the firmware is just being picky about which headers you can fetch.
tested by and ok deraadt@
Diffstat (limited to 'sys/dev/ic/mpi.c')
-rw-r--r-- | sys/dev/ic/mpi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/mpi.c b/sys/dev/ic/mpi.c index 9ab85c2f134..b4c58493007 100644 --- a/sys/dev/ic/mpi.c +++ b/sys/dev/ic/mpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpi.c,v 1.170 2011/04/27 06:04:48 dlg Exp $ */ +/* $OpenBSD: mpi.c,v 1.171 2011/04/27 06:06:30 dlg Exp $ */ /* * Copyright (c) 2005, 2006, 2009 David Gwynne <dlg@openbsd.org> @@ -1629,7 +1629,7 @@ mpi_scsi_probe_virtual(struct scsi_link *link) rv = mpi_req_cfg_header(sc, MPI_CONFIG_REQ_PAGE_TYPE_RAID_VOL, 0, link->target, MPI_PG_POLL, &hdr); if (rv != 0) - return (rv); + return (0); len = hdr.page_length * 4; rp0 = malloc(len, M_TEMP, M_NOWAIT); |