sysctl: Don't call sysctl_follow_link unless we are a link.
authorEric W. Biederman <ebiederm@xmission.com>
Tue, 31 Jan 2012 05:24:59 +0000 (21:24 -0800)
committerEric W. Biederman <ebiederm@xmission.com>
Thu, 2 Feb 2012 03:21:38 +0000 (19:21 -0800)
commit4e75732035d7e97e001bdf6e3149d3967c0221de
tree7b67c8208479ac7bde5f87d81fb0b44cb1cbfb3b
parent60f126d93b210ae708e2a5bb4a3be2121831f2a0
sysctl: Don't call sysctl_follow_link unless we are a link.

There are no functional changes.  Just code motion to make it
clear that we don't follow a link between sysctl roots unless the
directory entry actually is a link.

Suggested-by: Lucian Adrian Grijincu <lucian.grijincu@gmail.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
fs/proc/proc_sysctl.c