aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core/info.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2018-06-04 05:41:48 -0400
committerTakashi Iwai <tiwai@suse.de>2018-06-04 05:42:27 -0400
commitcdbc653a04ee692a7105a96e8dd6055d9971d45c (patch)
treec1282680b3115edfd693a27bc6758208534ac557 /sound/core/info.c
parent009f8c90f571d87855914dbc20e6c0ea2a3b19ae (diff)
parentceec4684085a9e4dc60439d84ab47ce260444804 (diff)
Merge branch 'for-next' into for-linus
4.18-rc1 merge material. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/info.c')
-rw-r--r--sound/core/info.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/core/info.c b/sound/core/info.c
index 4b36767af9e1..fe502bc5e6d2 100644
--- a/sound/core/info.c
+++ b/sound/core/info.c
@@ -454,7 +454,7 @@ static struct snd_info_entry *create_subdir(struct module *mod,
454 entry = snd_info_create_module_entry(mod, name, NULL); 454 entry = snd_info_create_module_entry(mod, name, NULL);
455 if (!entry) 455 if (!entry)
456 return NULL; 456 return NULL;
457 entry->mode = S_IFDIR | S_IRUGO | S_IXUGO; 457 entry->mode = S_IFDIR | 0555;
458 if (snd_info_register(entry) < 0) { 458 if (snd_info_register(entry) < 0) {
459 snd_info_free_entry(entry); 459 snd_info_free_entry(entry);
460 return NULL; 460 return NULL;
@@ -470,7 +470,7 @@ int __init snd_info_init(void)
470 snd_proc_root = snd_info_create_entry("asound", NULL); 470 snd_proc_root = snd_info_create_entry("asound", NULL);
471 if (!snd_proc_root) 471 if (!snd_proc_root)
472 return -ENOMEM; 472 return -ENOMEM;
473 snd_proc_root->mode = S_IFDIR | S_IRUGO | S_IXUGO; 473 snd_proc_root->mode = S_IFDIR | 0555;
474 snd_proc_root->p = proc_mkdir("asound", NULL); 474 snd_proc_root->p = proc_mkdir("asound", NULL);
475 if (!snd_proc_root->p) 475 if (!snd_proc_root->p)
476 goto error; 476 goto error;
@@ -716,7 +716,7 @@ snd_info_create_entry(const char *name, struct snd_info_entry *parent)
716 kfree(entry); 716 kfree(entry);
717 return NULL; 717 return NULL;
718 } 718 }
719 entry->mode = S_IFREG | S_IRUGO; 719 entry->mode = S_IFREG | 0444;
720 entry->content = SNDRV_INFO_CONTENT_TEXT; 720 entry->content = SNDRV_INFO_CONTENT_TEXT;
721 mutex_init(&entry->access); 721 mutex_init(&entry->access);
722 INIT_LIST_HEAD(&entry->children); 722 INIT_LIST_HEAD(&entry->children);