Module Name:    src
Committed By:   mlelstv
Date:           Sun Jun  5 09:03:10 UTC 2016

Modified Files:
        src/sys/dev/iscsi: iscsi_utils.c

Log Message:
initialize before check.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/iscsi/iscsi_utils.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/iscsi/iscsi_utils.c
diff -u src/sys/dev/iscsi/iscsi_utils.c:1.16 src/sys/dev/iscsi/iscsi_utils.c:1.17
--- src/sys/dev/iscsi/iscsi_utils.c:1.16	Sun Jun  5 05:41:53 2016
+++ src/sys/dev/iscsi/iscsi_utils.c	Sun Jun  5 09:03:10 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: iscsi_utils.c,v 1.16 2016/06/05 05:41:53 mlelstv Exp $	*/
+/*	$NetBSD: iscsi_utils.c,v 1.17 2016/06/05 09:03:10 mlelstv Exp $	*/
 
 /*-
  * Copyright (c) 2004,2005,2006,2008 The NetBSD Foundation, Inc.
@@ -367,9 +367,10 @@ throttle_ccb(ccb_t *ccb, bool yes)
 {
 	session_t *sess;
 
+	sess = ccb->session;
+
 	KASSERT(mutex_owned(&sess->lock));
 
-	sess = ccb->session;
 	if (yes) {
 		KASSERT((ccb->flags & CCBF_THROTTLING) == 0);
 		KASSERT((ccb->flags & CCBF_WAITQUEUE) == 0);

Reply via email to