diff options
Diffstat (limited to 'fs/kernfs/file.c')
-rw-r--r-- | fs/kernfs/file.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/kernfs/file.c b/fs/kernfs/file.c index 98bacd9ea7fd..40251cd741a0 100644 --- a/fs/kernfs/file.c +++ b/fs/kernfs/file.c | |||
@@ -485,6 +485,8 @@ static int kernfs_fop_mmap(struct file *file, struct vm_area_struct *vma) | |||
485 | 485 | ||
486 | ops = kernfs_ops(of->kn); | 486 | ops = kernfs_ops(of->kn); |
487 | rc = ops->mmap(of, vma); | 487 | rc = ops->mmap(of, vma); |
488 | if (rc) | ||
489 | goto out_put; | ||
488 | 490 | ||
489 | /* | 491 | /* |
490 | * PowerPC's pci_mmap of legacy_mem uses shmem_zero_setup() | 492 | * PowerPC's pci_mmap of legacy_mem uses shmem_zero_setup() |