diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-10-10 11:16:44 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-10-10 11:16:44 -0400 |
commit | 015c21ba59fcbc522d7a9d1e0ab0f0e6c0895ff0 (patch) | |
tree | 4fa0e91287d927e9df8e1658f93c40ca9efd60bc /mm/shmem.c | |
parent | 5e48e55fb57a9026e6b3b6961def6d2aeb210659 (diff) | |
parent | 6fcf0c72e4b9360768cf5ef543c4f14c34800ee8 (diff) |
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/shmem.c')
-rw-r--r-- | mm/shmem.c | 6 |
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) | |||
3482 | { | 3482 | { |
3483 | char *options = data; | 3483 | char *options = data; |
3484 | 3484 | ||
3485 | if (options) { | ||
3486 | int err = security_sb_eat_lsm_opts(options, &fc->security); | ||
3487 | if (err) | ||
3488 | return err; | ||
3489 | } | ||
3490 | |||
3485 | while (options != NULL) { | 3491 | while (options != NULL) { |
3486 | char *this_char = options; | 3492 | char *this_char = options; |
3487 | for (;;) { | 3493 | for (;;) { |