fix-param_sysfs_builtin-name-length-check
commite7ef2e3ccb4af6cd8103daf938c506406ff7ff7d
authorJan Kiszka <jan.kiszka@web.de>
Tue, 30 Oct 2007 19:29:29 +0000 (30 19:29 +0000)
committerMatthias Urlichs <smurf@hera.kernel.org>
Wed, 14 Nov 2007 11:27:07 +0000 (14 11:27 +0000)
treecdf008b7a2b86dd337e3c47d569e1a4d5ed0a002
parent189b19124eecee32219e929df9f8be4ef3e27c69
fix-param_sysfs_builtin-name-length-check

Commit faf8c714f4508207a9c81cc94dafc76ed6680b44 caused a regression:
parameter names longer than MAX_KBUILD_MODNAME will now be rejected,
although we just need to keep the module name part that short.  This patch
restores the old behaviour while still avoiding that memchr is called with
its length parameter larger than the total string length.

Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
Cc: Dave Young <hidave.darkstar@gmail.com>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/params.c