From: Jeffrey Altman Date: Sat, 15 Jan 2011 16:52:45 +0000 (-0500) Subject: vol: fdHandleAllocateChunk should init all fields X-Git-Tag: upstream/1.8.0_pre1^2~4284 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=bae39a9aa3738878708f4c67d17750beca4d6dca;p=packages%2Fo%2Fopenafs.git vol: fdHandleAllocateChunk should init all fields fdHandleAllocateChunk() failed to initialize the fd_ihnext and fd_ihprev fields. Change-Id: I605b6fc3c4cefe6e5c4169762fbd6047fb895b70 Reviewed-on: http://gerrit.openafs.org/3671 Reviewed-by: Derrick Brashear Tested-by: BuildBot --- diff --git a/src/vol/ihandle.c b/src/vol/ihandle.c index facae4f34..e1c2ba342 100644 --- a/src/vol/ihandle.c +++ b/src/vol/ihandle.c @@ -303,6 +303,8 @@ fdHandleAllocateChunk(void) fdP[i].fd_refcnt = 0; fdP[i].fd_ih = NULL; fdP[i].fd_fd = INVALID_FD; + fdP[i].fd_ihnext = NULL; + fdP[i].fd_ihprev = NULL; DLL_INSERT_TAIL(&fdP[i], fdAvailHead, fdAvailTail, fd_next, fd_prev); } }