summaryrefslogtreecommitdiff
path: root/libre/linux-libre-grsec/0011-kernfs-fix-removed-error-check.patch
diff options
context:
space:
mode:
authorshackra <elcorreo@deshackra.com>2014-05-18 23:19:29 -0600
committershackra <elcorreo@deshackra.com>2014-05-18 23:19:29 -0600
commit113793e5d19301552423a95947efc704424a7167 (patch)
treec1804e43e11d5f9a152436b42a7ce182e88d500b /libre/linux-libre-grsec/0011-kernfs-fix-removed-error-check.patch
parent01011325d60e0262ba0d5a51c4d3b2be57f5924c (diff)
parent1287ab2629ed3997b6ec6e603847eafb1e6aa199 (diff)
downloadabslibre-113793e5d19301552423a95947efc704424a7167.tar.gz
abslibre-113793e5d19301552423a95947efc704424a7167.tar.bz2
abslibre-113793e5d19301552423a95947efc704424a7167.zip
Merge branch 'master' of ssh://projects.parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'libre/linux-libre-grsec/0011-kernfs-fix-removed-error-check.patch')
-rw-r--r--libre/linux-libre-grsec/0011-kernfs-fix-removed-error-check.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/libre/linux-libre-grsec/0011-kernfs-fix-removed-error-check.patch b/libre/linux-libre-grsec/0011-kernfs-fix-removed-error-check.patch
new file mode 100644
index 000000000..b597595c6
--- /dev/null
+++ b/libre/linux-libre-grsec/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()