summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Herard <Fred.Herard@Sun.COM>2010-07-06 22:24:24 -0400
committerFred Herard <Fred.Herard@Sun.COM>2010-07-06 22:24:24 -0400
commit427f591e1fcd1cf040406a539ad2725469a680fc (patch)
treeb8ad77c9ce7efbcd01d9f82cc99f95e58a90a9ed
parent4da0bd731fbee2cfd126b8ad533d26179e6566d1 (diff)
downloadillumos-gate-onnv_144.tar.gz
6959673 The variable fdr is not defined before use in fd.connv_144
-rw-r--r--usr/src/uts/sun/io/fd.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr/src/uts/sun/io/fd.c b/usr/src/uts/sun/io/fd.c
index 8193993da0..750f1a3dbc 100644
--- a/usr/src/uts/sun/io/fd.c
+++ b/usr/src/uts/sun/io/fd.c
@@ -19,8 +19,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
+ * Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
*/
@@ -2582,9 +2581,6 @@ fdrawioctl(struct fdctlr *fdc, int unit, intptr_t arg, int mode)
ASSERT(fdc->c_un->un_unit_no == unit);
- FDERRPRINT(FDEP_L1, FDEM_RAWI,
- (C, "fdrawioctl: cmd[0]=0x%x\n", fdr.fdr_cmd[0]));
-
flag = B_READ;
err = 0;
fa = NULL;
@@ -2619,6 +2615,9 @@ fdrawioctl(struct fdctlr *fdc, int unit, intptr_t arg, int mode)
break;
}
+ FDERRPRINT(FDEP_L1, FDEM_RAWI,
+ (C, "fdrawioctl: cmd[0]=0x%x\n", fdr.fdr_cmd[0]));
+
mutex_enter(&fdc->c_lolock);
CHECK_AND_WAIT_FD_STATE_SUSPENDED(fdc);