mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
nfsd4: fix memory leak in nfsd4_encode_fattr()
fh_put() does not free the temporary file handle. Signed-off-by: Yan, Zheng <[email protected]> Cc: [email protected] Signed-off-by: J. Bruce Fields <[email protected]>
This commit is contained in:
parent
3064639423
commit
18df11d0ea
1 changed files with 3 additions and 1 deletions
|
|
@ -2500,8 +2500,10 @@ out:
|
|||
security_release_secctx(context, contextlen);
|
||||
#endif /* CONFIG_NFSD_V4_SECURITY_LABEL */
|
||||
kfree(acl);
|
||||
if (tempfh)
|
||||
if (tempfh) {
|
||||
fh_put(tempfh);
|
||||
kfree(tempfh);
|
||||
}
|
||||
return status;
|
||||
out_nfserr:
|
||||
status = nfserrno(err);
|
||||
|
|
|
|||
Loading…
Reference in a new issue