NFSv4.1: Fix a reference leak in pnfs_update_layout
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 21 Sep 2012 01:25:19 +0000 (21:25 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 28 Sep 2012 20:03:10 +0000 (16:03 -0400)
commit830ffb565760234eb984e4343ad82575e96728de
treeb4d1be236d51d30624bc9b2bb5cacb75a640d7fd
parent1dfed2737d8cfe2f2378fddfb3bed126ff5474e7
NFSv4.1: Fix a reference leak in pnfs_update_layout

If we exit after the call to pnfs_find_alloc_layout(), we have to ensure
that we put the struct pnfs_layout_hdr.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/pnfs.c