DEVEL153X-afs-blacklist-initialize-volume-ptr-always-20080628

LICENSE IPL10

always initialize this


(cherry picked from commit dff0d834a7c03d19d572d74849599ac89c2a058e)
This commit is contained in:
Chaskiel M Grundman 2008-06-29 04:39:26 +00:00 committed by Derrick Brashear
parent 11df23f038
commit 6458132196

View File

@ -247,7 +247,7 @@ 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++) {
@ -262,6 +262,7 @@ afs_BlackListOnce(struct vrequest *areq, struct VenusFid *afid,
}
afs_PutVolume(tvp, READ_LOCK);
}
}
for (i = 0; i < MAXHOSTS; i++) {
if (areq->skipserver[i] == 0) {
serversleft = 1;