From d753835af57c7904d74f55a1251a643a5ddc47d1 Mon Sep 17 00:00:00 2001 From: Zach Kissel Date: Thu, 12 Feb 2009 14:53:12 -0500 Subject: 6795836 vd_setup_vd()should handle errors from vd_identify_dev() better --- usr/src/uts/sun4v/io/vds.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'usr/src') diff --git a/usr/src/uts/sun4v/io/vds.c b/usr/src/uts/sun4v/io/vds.c index b78dcb6b1d..548fc0f048 100644 --- a/usr/src/uts/sun4v/io/vds.c +++ b/usr/src/uts/sun4v/io/vds.c @@ -6530,9 +6530,13 @@ vd_setup_vd(vd_t *vd) ddi_release_devi(dip); VN_RELE(vnp); - if (vd_identify_dev(vd, &drv_type) != 0) { - PRN("%s identification failed", path); - status = EIO; + if ((status = vd_identify_dev(vd, &drv_type)) != 0) { + if (status != ENODEV && status != ENXIO && + status != ENOENT && status != EROFS) { + PRN("%s identification failed with status %d", + path, status); + status = EIO; + } break; } -- cgit v1.2.3