Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/iscsi initialize before check.
details: https://anonhg.NetBSD.org/src/rev/834fed0b5676
branches: trunk
changeset: 345705:834fed0b5676
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Sun Jun 05 09:03:10 2016 +0000
description:
initialize before check.
diffstat:
sys/dev/iscsi/iscsi_utils.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r ff4c130fec30 -r 834fed0b5676 sys/dev/iscsi/iscsi_utils.c
--- a/sys/dev/iscsi/iscsi_utils.c Sun Jun 05 08:30:13 2016 +0000
+++ b/sys/dev/iscsi/iscsi_utils.c Sun Jun 05 09:03:10 2016 +0000
@@ -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 @@
{
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);
Home |
Main Index |
Thread Index |
Old Index