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:00:48 -0800 |
commit | 74bce79fd4df17c1316dd0de23d94ce40daf8bf9 (patch) | |
tree | ffe56ad39cdc805c18edf7a8a76baf719c96eba6 /drivers/md | |
parent | d46939673d59f3687bff8438305a726b3bb084c5 (diff) | |
download | lwn-74bce79fd4df17c1316dd0de23d94ce40daf8bf9.tar.gz lwn-74bce79fd4df17c1316dd0de23d94ce40daf8bf9.zip |
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 'drivers/md')
0 files changed, 0 insertions, 0 deletions