# HG changeset patch # User Fred Herard # Date 1278469464 14400 # Node ID 96016f1d98371e79260cf42cd053532602fe964a # Parent e64b5ecb0036ca02b27bade966c93b0123f3b1e8 6959673 The variable fdr is not defined before use in fd.c diff -r e64b5ecb0036 -r 96016f1d9837 usr/src/uts/sun/io/fd.c --- a/usr/src/uts/sun/io/fd.c Tue Jul 06 18:22:03 2010 -0700 +++ b/usr/src/uts/sun/io/fd.c Tue Jul 06 22:24:24 2010 -0400 @@ -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 @@ 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 @@ 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);