diff options
author | Peng Tao <tao.peng@primarydata.com> | 2014-11-17 04:05:17 +0100 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-11-24 23:14:54 +0100 |
commit | 4bd5a980de87d2b5af417485bde97b8eb3d6cf6a (patch) | |
tree | 2a6ea37a5b07ab66951519a076d5f2e6c0c6905e /fs/lockd/svclock.c | |
parent | NFS: fix subtle change in COMMIT behavior (diff) | |
download | linux-4bd5a980de87d2b5af417485bde97b8eb3d6cf6a.tar.xz linux-4bd5a980de87d2b5af417485bde97b8eb3d6cf6a.zip |
nfs41: fix nfs4_proc_layoutget error handling
nfs4_layoutget_release() drops layout hdr refcnt. Grab the refcnt
early so that it is safe to call .release in case nfs4_alloc_pages
fails.
Signed-off-by: Peng Tao <tao.peng@primarydata.com>
Fixes: a47970ff78147 ("NFSv4.1: Hold reference to layout hdr in layoutget")
Cc: stable@vger.kernel.org # 3.9+
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/lockd/svclock.c')
0 files changed, 0 insertions, 0 deletions