nfsd: fix NULL dereference in setattr()
authorDan Carpenter <error27@gmail.com>
Wed, 27 Oct 2010 21:19:04 +0000 (23:19 +0200)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 19 Nov 2010 23:35:11 +0000 (18:35 -0500)
commit43b0178eda1e7e5d1e205bbfd076ab5d6ecacc02
tree522d3a6e49ff805eea06c5e1633b0e949a90a49b
parente53beacd23d9cb47590da6a7a7f6d417b941a994
nfsd: fix NULL dereference in setattr()

The original code would oops if this were called from nfsd4_setattr()
because "filpp" is NULL.

(Note this case is currently impossible, as long as we only give out
read delegations.)

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c