diff options
author | Baptiste Jonglez | 2015-06-25 11:45:18 +0200 |
---|---|---|
committer | Baptiste Jonglez | 2015-06-25 11:45:18 +0200 |
commit | 35d8e22e22e21c2897cf2d4b14128768601c13eb (patch) | |
tree | 789c1b8eb78bae621f7bebda9473fa5216e41ce7 /0011-kernfs-fix-removed-error-check.patch | |
download | aur-35d8e22e22e21c2897cf2d4b14128768601c13eb.tar.gz |
Initial upload: linux-mptcp 0.89.433305.dcdf730-1
Diffstat (limited to '0011-kernfs-fix-removed-error-check.patch')
-rw-r--r-- | 0011-kernfs-fix-removed-error-check.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/0011-kernfs-fix-removed-error-check.patch b/0011-kernfs-fix-removed-error-check.patch new file mode 100644 index 000000000000..b597595c6443 --- /dev/null +++ b/0011-kernfs-fix-removed-error-check.patch @@ -0,0 +1,13 @@ +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() |