nfsd: COPY and CLONE operations require the saved filehandle to be set
authorScott Mayhew <smayhew@redhat.com>
Thu, 8 Nov 2018 16:11:36 +0000 (11:11 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 8 Nov 2018 17:11:45 +0000 (12:11 -0500)
commit01310bb7c9c98752cc763b36532fab028e0f8f81
tree7d3ee070317b029e9f6b31ceeca8a96a4191afc4
parent5d7a5bcb67c70cbc904057ef52d3fcfeb24420bb
nfsd: COPY and CLONE operations require the saved filehandle to be set

Make sure we have a saved filehandle, otherwise we'll oops with a null
pointer dereference in nfs4_preprocess_stateid_op().

Signed-off-by: Scott Mayhew <smayhew@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4proc.c