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 09:58:15 -0800 |
commit | f30d637d028b4a5344d4651f30c486f9daec6804 (patch) | |
tree | 196428e0fa0863b565d894eaec423217226829c3 /fs/exofs | |
parent | 72f7a5c969dd7c3f5958e14eb97ee5022fe3dba5 (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/exofs')
0 files changed, 0 insertions, 0 deletions