OSDN Git Service

sysctl: Correct error return from get_subdir
authorEric W. Biederman <ebiederm@xmission.com>
Tue, 31 Jan 2012 04:37:51 +0000 (20:37 -0800)
committerEric W. Biederman <ebiederm@xmission.com>
Thu, 2 Feb 2012 03:20:40 +0000 (19:20 -0800)
commit0eb97f38d2bfaea289b44c5140a7b04e7b369bad
treee9d0d1ae9ec236f32da3642723111c86c80d530a
parent51f72f4a0f92e4abde33a8bca0fac9667575d035
sysctl: Correct error return from get_subdir

When insert_header fails ensure we return the proper error value
from get_subdir.  In practice nothing cares, but there is no
need to be sloppy.

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