From: Meng Li <meng...@windriver.com>

This issue is introduced by commit bad361d963fb("aufs5:
aufs5-mmap"). The fput should be placed by vma_fput,
but it is missed. So, remove the redundant fput with this patch.

Signed-off-by: Meng Li <meng...@windriver.com>
---
 mm/mmap.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/mm/mmap.c b/mm/mmap.c
index d87fcdc32c71..09b10e20c097 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -1897,7 +1897,6 @@ unsigned long mmap_region(struct file *file, unsigned 
long addr,
        return addr;
 
 unmap_and_free_vma:
-       fput(vma->vm_file);
        vma_fput(vma);
        vma->vm_file = NULL;
 
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#9448): 
https://lists.yoctoproject.org/g/linux-yocto/message/9448
Mute This Topic: https://lists.yoctoproject.org/mt/80348200/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to