nfsd: Fix a memory leak in nfsd4_list_rec_dir()
authorKinglong Mee <kinglongmee@gmail.com>
Tue, 7 Jul 2015 02:13:02 +0000 (10:13 +0800)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 20 Jul 2015 18:58:45 +0000 (14:58 -0400)
commit4691b271ac3a3bdc0d7d886e4715163eb4fb4bc7
treea4e55446ef3aac56131595a8a0953eb74388809f
parent1ca4b88e7de23f6f86d2009101fe42d5b9dbf3de
nfsd: Fix a memory leak in nfsd4_list_rec_dir()

If lookup_one_len() failed, nfsd should free those memory allocated for fname.

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