summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/io/fd.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/common/io/fd.c')
-rw-r--r--usr/src/uts/common/io/fd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/src/uts/common/io/fd.c b/usr/src/uts/common/io/fd.c
index 5ad6022610..aae0cd09c2 100644
--- a/usr/src/uts/common/io/fd.c
+++ b/usr/src/uts/common/io/fd.c
@@ -810,6 +810,7 @@ fdgetlabel(struct fcu_obj *fjp, int unit)
nexttype = fdp->d_deffdtype;
try_this = 1; /* always try the current characteristics */
+ rval = ENXIO;
for (tries = nfdtypes; tries; tries--) {
if (try_this) {
fjp->fj_flags &= ~FUNIT_CHAROK;