linux-hwg/0011-kernfs-fix-removed-error-check.patch
Tobias Powalowski 323c32f878 upgpkg: 3.14.2-1
bump to latest version, added fixes for i810 hang, uefi xsdt issue, saa7134, rtl8192se, tun speed
2014-04-27 09:34:35 +00:00

14 lines
372 B
Diff

diff --git a/fs/kernfs/file.c b/fs/kernfs/file.c
index 8034706..e01ea4a 100644
--- a/fs/kernfs/file.c
+++ b/fs/kernfs/file.c
@@ -484,6 +484,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()