nfsd: Fix a file leak on nfsd4_layout_setlease failure
authorKinglong Mee <kinglongmee@gmail.com>
Thu, 9 Jul 2015 09:38:26 +0000 (17:38 +0800)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 20 Jul 2015 18:58:22 +0000 (14:58 -0400)
commit1ca4b88e7de23f6f86d2009101fe42d5b9dbf3de
tree999d7832f8e06ec7b6fbf255f30998952feeae0c
parentc2227a39a078473115910512aa0f8d53bd915e60
nfsd: Fix a file leak on nfsd4_layout_setlease failure

If nfsd4_layout_setlease fails, nfsd will not put ls->ls_file.

Fix commit c5c707f96f "nfsd: implement pNFS layout recalls".

Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4layouts.c