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.6.0.pre2^2~72 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=bccbd2b25b189cbc86d43fa1b072ab317aafeeb9;p=packages%2Fo%2Fopenafs.git vol: fdHandleAllocateChunk should init all fields fdHandleAllocateChunk() failed to initialize the fd_ihnext and fd_ihprev fields. Reviewed-on: http://gerrit.openafs.org/3671 Reviewed-by: Derrick Brashear Tested-by: BuildBot (cherry picked from commit bae39a9aa3738878708f4c67d17750beca4d6dca) Change-Id: I9fa401cb4ddec886a3f39ddfb926ce0be8cfa96e Reviewed-on: http://gerrit.openafs.org/3832 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/vol/ihandle.c b/src/vol/ihandle.c index 66fb28c79..3e8a5c838 100644 --- a/src/vol/ihandle.c +++ b/src/vol/ihandle.c @@ -302,6 +302,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); } }