diff options
Diffstat (limited to 'fs/proc/proc_sysctl.c')
-rw-r--r-- | fs/proc/proc_sysctl.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c index 7da10e595297..4654fc3c246f 100644 --- a/fs/proc/proc_sysctl.c +++ b/fs/proc/proc_sysctl.c | |||
@@ -712,12 +712,9 @@ static bool proc_sys_link_fill_cache(struct file *file, | |||
712 | if (IS_ERR(head)) | 712 | if (IS_ERR(head)) |
713 | return false; | 713 | return false; |
714 | 714 | ||
715 | if (S_ISLNK(table->mode)) { | 715 | /* It is not an error if we can not follow the link ignore it */ |
716 | /* It is not an error if we can not follow the link ignore it */ | 716 | if (sysctl_follow_link(&head, &table)) |
717 | int err = sysctl_follow_link(&head, &table); | 717 | goto out; |
718 | if (err) | ||
719 | goto out; | ||
720 | } | ||
721 | 718 | ||
722 | ret = proc_sys_fill_cache(file, ctx, head, table); | 719 | ret = proc_sys_fill_cache(file, ctx, head, table); |
723 | out: | 720 | out: |