Re: [PATCH] kernfs: fix off by one error.

2014-03-05 Thread Eric W. Biederman
Greg Kroah-Hartman writes: > On Wed, Mar 05, 2014 at 05:10:52PM +0100, Richard Cochran wrote: >> 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:

Re: [PATCH] kernfs: fix off by one error.

2014-03-05 Thread Greg Kroah-Hartman
On Wed, Mar 05, 2014 at 05:10:52PM +0100, Richard Cochran wrote: > 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 > Cc: > --- >

Re: [PATCH] kernfs: fix off by one error.

2014-03-05 Thread Eric W. Biederman
Richard Cochran writes: > 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. > Reviewed-by: "Eric W. Biederman" > Signed-off-by: Richard Cochran > Cc: > --- >

[PATCH] kernfs: fix off by one error.

2014-03-05 Thread Richard Cochran
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 Cc: --- fs/kernfs/dir.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] kernfs: fix off by one error.

2014-03-05 Thread Richard Cochran
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 richardcoch...@gmail.com Cc: sta...@vger.kernel.org --- fs/kernfs/dir.c |2 +- 1 file

Re: [PATCH] kernfs: fix off by one error.

2014-03-05 Thread Eric W. Biederman
Richard Cochran richardcoch...@gmail.com writes: 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. Reviewed-by: Eric W. Biederman ebied...@xmission.com Signed-off-by:

Re: [PATCH] kernfs: fix off by one error.

2014-03-05 Thread Greg Kroah-Hartman
On Wed, Mar 05, 2014 at 05:10:52PM +0100, Richard Cochran wrote: 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 richardcoch...@gmail.com

Re: [PATCH] kernfs: fix off by one error.

2014-03-05 Thread Eric W. Biederman
Greg Kroah-Hartman gre...@linuxfoundation.org writes: On Wed, Mar 05, 2014 at 05:10:52PM +0100, Richard Cochran wrote: 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.