aboutsummaryrefslogtreecommitdiff
path: root/drivers/base/core.c
diff options
context:
space:
mode:
authorGravatar Richard Cochran <richardcochran@gmail.com> 2014-03-05 17:10:52 +0100
committerGravatar Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2014-03-08 22:08:29 -0800
commit88391d49abb7d8dee91d405f96bd9e003cb6798d (patch)
tree6e41448eb4131efd1708ebf674380b218ef2e24d /drivers/base/core.c
parentMerge 3.14-rc5 into driver-core-next (diff)
downloadlinux-88391d49abb7d8dee91d405f96bd9e003cb6798d.tar.gz
linux-88391d49abb7d8dee91d405f96bd9e003cb6798d.tar.bz2
linux-88391d49abb7d8dee91d405f96bd9e003cb6798d.zip
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>
Diffstat (limited to 'drivers/base/core.c')
0 files changed, 0 insertions, 0 deletions