aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2019-10-10 08:16:44 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2019-10-10 08:16:44 -0700
commit015c21ba59fcbc522d7a9d1e0ab0f0e6c0895ff0 (patch)
tree4fa0e91287d927e9df8e1658f93c40ca9efd60bc /mm
parentMAINTAINERS: Remove Simon as Renesas SoC Co-Maintainer (diff)
parentvfs: add missing blkdev_put() in get_tree_bdev() (diff)
downloadlinux-dev-015c21ba59fcbc522d7a9d1e0ab0f0e6c0895ff0.tar.xz
linux-dev-015c21ba59fcbc522d7a9d1e0ab0f0e6c0895ff0.zip
Merge branch 'work.mount3' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull mount fixes from Al Viro: "A couple of regressions from the mount series" * 'work.mount3' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: vfs: add missing blkdev_put() in get_tree_bdev() shmem: fix LSM options parsing
Diffstat (limited to 'mm')
-rw-r--r--mm/shmem.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mm/shmem.c b/mm/shmem.c
index cd570cc79c76..220be9fa2c41 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -3482,6 +3482,12 @@ static int shmem_parse_options(struct fs_context *fc, void *data)
{
char *options = data;
+ if (options) {
+ int err = security_sb_eat_lsm_opts(options, &fc->security);
+ if (err)
+ return err;
+ }
+
while (options != NULL) {
char *this_char = options;
for (;;) {