From: Peng Tao Date: Mon, 17 Nov 2014 03:05:17 +0000 (+0800) Subject: nfs41: fix nfs4_proc_layoutget error handling X-Git-Tag: omap-for-v3.19/fixes-rc1~150^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bd5a980de87d2b5af417485bde97b8eb3d6cf6a;p=pandora-kernel.git 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 Fixes: a47970ff78147 ("NFSv4.1: Hold reference to layout hdr in layoutget") Cc: stable@vger.kernel.org # 3.9+ Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed