OSDN Git Service

nfsd4: fix delegation cleanup on error
authorJ. Bruce Fields <bfields@redhat.com>
Mon, 3 Mar 2014 17:19:18 +0000 (12:19 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 21 May 2014 16:17:17 +0000 (12:17 -0400)
commitcbf7a75bc58a2458bd6e47476e47819ba3f40b00
tree65e42946837a0c4d3506c4d246f11ee7bd884f47
parent368fe39b508486483eb2cbb03a21ebd1b2a204bf
nfsd4: fix delegation cleanup on error

We're not cleaning up everything we need to on error.  In particular,
we're not removing our lease.  Among other problems this can cause the
struct nfs4_file used as fl_owner to be referenced after it has been
destroyed.

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