]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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, 21 Sep 2012 01:31:01 +0000 (21:31 -0400)
commit49dd93b0bfbbfa94f90bf9394b226808f3b04b8a
treed7df09f71bd242ce84c0060e5928d5a95eafe8d5
parent1ee9e30ee6e0040f51e7c1d00d72110f801f8c36
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