]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: Fix memleak in svc_export_put
authormajianpeng <majianpeng@gmail.com>
Tue, 29 Jan 2013 05:16:01 +0000 (13:16 +0800)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 29 Jan 2013 21:50:03 +0000 (16:50 -0500)
commit1b66b3c18d053c6edba3e048e4db710831337777
tree7ec009e3704fb201ab518a22954cd2951420270e
parentcc3ec6cf931993fdbdcc4ca9c4bd4f050d271919
nfsd: Fix memleak in svc_export_put

In func svc_export_parse, the uuid which used kmemdup to alloc will be
changed in func export_update.So the later kfree don't free this memory.
And it can't be free in func svc_export_parse because other place still
used.So put this operation in func svc_export_put.

Signed-off-by: Jianpeng Ma <majianpeng@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/export.c