kernfs: fix off by one error.
authorRichard Cochran <richardcochran@gmail.com>
Wed, 5 Mar 2014 16:10:52 +0000 (17:10 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Mar 2014 06:08:29 +0000 (22:08 -0800)
commit88391d49abb7d8dee91d405f96bd9e003cb6798d
tree6e41448eb4131efd1708ebf674380b218ef2e24d
parent13df7977431e3b906a23bb75f29e0f40a8d73f87
kernfs: fix off by one error.

The hash values 0 and 1 are reserved for magic directory entries, but
the code only prevents names hashing to 0. This patch fixes the test
to also prevent hash value 1.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
Cc: <stable@vger.kernel.org>
Reviewed-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/kernfs/dir.c