commit | 94ae1db226a5bcbb48372d81161f084c9e283fd8 | [log] [tgz] |
---|---|---|
author | Jeff Layton <jlayton@primarydata.com> | Sat Dec 13 09:11:39 2014 -0500 |
committer | J. Bruce Fields <bfields@redhat.com> | Wed Jan 07 13:38:21 2015 -0500 |
tree | 696ef809d14d51b48112195e06dbf7bd599807c4 | |
parent | b1940cd21c0f4abdce101253e860feff547291b0 [diff] |
nfsd: fix fi_delegees leak when fi_had_conflict returns true Currently, nfs4_set_delegation takes a reference to an existing delegation and then checks to see if there is a conflict. If there is one, then it doesn't release that reference. Change the code to take the reference after the check and only if there is no conflict. Signed-off-by: Jeff Layton <jlayton@primarydata.com> Cc: stable@vger.kernel.org Signed-off-by: J. Bruce Fields <bfields@redhat.com>