|
@@ -712,12 +712,9 @@ static bool proc_sys_link_fill_cache(struct file *file,
|
|
|
if (IS_ERR(head))
|
|
|
return false;
|
|
|
|
|
|
- if (S_ISLNK(table->mode)) {
|
|
|
- /* It is not an error if we can not follow the link ignore it */
|
|
|
- int err = sysctl_follow_link(&head, &table);
|
|
|
- if (err)
|
|
|
- goto out;
|
|
|
- }
|
|
|
+ /* It is not an error if we can not follow the link ignore it */
|
|
|
+ if (sysctl_follow_link(&head, &table))
|
|
|
+ goto out;
|
|
|
|
|
|
ret = proc_sys_fill_cache(file, ctx, head, table);
|
|
|
out:
|