]> git.baikalelectronics.ru Git - kernel.git/commit
proc: Fix unbalanced hard link numbers
authorTakashi Iwai <tiwai@suse.de>
Fri, 28 Apr 2017 13:00:15 +0000 (15:00 +0200)
committerEric W. Biederman <ebiederm@xmission.com>
Sat, 29 Apr 2017 02:05:26 +0000 (21:05 -0500)
commitcdb94ceca05b6702f5336a3b1c680fcfce7e5855
tree4d063baa6e6130e4c29bb53233d980013ca069ff
parentd84d4fa08df5f1ee80ec8b51b8dd13077f573e70
proc: Fix unbalanced hard link numbers

proc_create_mount_point() forgot to increase the parent's nlink, and
it resulted in unbalanced hard link numbers, e.g. /proc/fs shows one
less than expected.

Fixes: 5264fb5077d3 ("proc: Allow creating permanently empty directories...")
Cc: stable@vger.kernel.org
Reported-by: Tristan Ye <tristan.ye@suse.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
fs/proc/generic.c