From 645813219606af5b32f4496cb098516f9bb3b74c Mon Sep 17 00:00:00 2001 From: Chaskiel M Grundman Date: Sun, 29 Jun 2008 04:39:26 +0000 Subject: [PATCH] DEVEL153X-afs-blacklist-initialize-volume-ptr-always-20080628 LICENSE IPL10 always initialize this (cherry picked from commit dff0d834a7c03d19d572d74849599ac89c2a058e) --- src/afs/afs_analyze.c | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/afs/afs_analyze.c b/src/afs/afs_analyze.c index 1258b15aa6..3f6b2119af 100644 --- a/src/afs/afs_analyze.c +++ b/src/afs/afs_analyze.c @@ -247,20 +247,21 @@ afs_BlackListOnce(struct vrequest *areq, struct VenusFid *afid, afs_int32 i; afs_int32 serversleft = 0; - if (afid) + if (afid) { tvp = afs_FindVolume(afid, READ_LOCK); - if (tvp) { - for (i = 0; i < MAXHOSTS; i++) { - if (tvp->serverHost[i] == tsp) { - areq->skipserver[i] = 1; - } - if (tvp->serverHost[i] && - !(tvp->serverHost[i]->addr->sa_flags & - SRVR_ISDOWN)) { - areq->skipserver[i] = 1; + if (tvp) { + for (i = 0; i < MAXHOSTS; i++) { + if (tvp->serverHost[i] == tsp) { + areq->skipserver[i] = 1; + } + if (tvp->serverHost[i] && + !(tvp->serverHost[i]->addr->sa_flags & + SRVR_ISDOWN)) { + areq->skipserver[i] = 1; + } } + afs_PutVolume(tvp, READ_LOCK); } - afs_PutVolume(tvp, READ_LOCK); } for (i = 0; i < MAXHOSTS; i++) { if (areq->skipserver[i] == 0) {