diff options
author | Peng Tao <tao.peng@primarydata.com> | 2014-11-17 11:05:17 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-01-08 10:30:18 -0800 |
commit | a8897f26795cc06241c96027d81a6bccdf695bf6 (patch) | |
tree | dabe45cccddc7924399fdba379ae5e1312badbde /fs/dcache.c | |
parent | 243cc955de444e0cd982dbce0bcac68785aee9b5 (diff) |
nfs41: fix nfs4_proc_layoutget error handling
commit 4bd5a980de87d2b5af417485bde97b8eb3d6cf6a upstream.
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")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/dcache.c')
0 files changed, 0 insertions, 0 deletions