X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=fs%2Fkernfs%2Ffile.c;h=d29640b49be3989ff61df983370307f72f32ebc5;hb=e56f5b85a789dff4520e68905d7eb0dee394f0a1;hp=dbf397bfdff266d16332c57ac2de90e43ef8d8eb;hpb=14164b46fc994bcf82963ace00372cf808a31af1;p=platform%2Fkernel%2Flinux-stable.git diff --git a/fs/kernfs/file.c b/fs/kernfs/file.c index dbf397b..d29640b 100644 --- a/fs/kernfs/file.c +++ b/fs/kernfs/file.c @@ -476,6 +476,8 @@ static int kernfs_fop_mmap(struct file *file, struct vm_area_struct *vma) ops = kernfs_ops(of->kn); rc = ops->mmap(of, vma); + if (rc) + goto out_put; /* * PowerPC's pci_mmap of legacy_mem uses shmem_zero_setup()