Skip to content
Commit 4bd5a980 authored by Peng Tao's avatar Peng Tao Committed by Trond Myklebust
Browse files

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: default avatarPeng Tao <tao.peng@primarydata.com>
Fixes: a47970ff ("NFSv4.1: Hold reference to layout hdr in layoutget")
Cc: stable@vger.kernel.org # 3.9+
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent cb1410c7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment