Mercurial > illumos > illumos-gate
changeset 12779:96016f1d9837 onnv_144
6959673 The variable fdr is not defined before use in fd.c
author | Fred Herard <Fred.Herard@Sun.COM> |
---|---|
date | Tue, 06 Jul 2010 22:24:24 -0400 |
parents | e64b5ecb0036 |
children | c39281da15f8 9ae1c153bab6 |
files | usr/src/uts/sun/io/fd.c |
diffstat | 1 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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);