pnfs: do not pass uninitialized lsegs to ->free_lseg
authorChristoph Hellwig <hch@lst.de>
Thu, 21 Aug 2014 16:09:18 +0000 (11:09 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 10 Sep 2014 19:47:01 +0000 (12:47 -0700)
commit1013df61150e56f775ccacdaaeee66042f1e6eb6
tree1ebca856acca78d719a6c477b8f288d732804856
parent2e11f8296d22134c4fca7eb022eea2b09facd307
pnfs: do not pass uninitialized lsegs to ->free_lseg

Ensure the lsegs are initialized early so that we don't pass an unitialized
one back to ->free_lseg during error processing.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/pnfs.c