]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
fix param_sysfs_builtin name length check
authorJan Kiszka <jan.kiszka@web.de>
Thu, 15 Nov 2007 01:00:08 +0000 (17:00 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 21 Nov 2007 17:25:53 +0000 (09:25 -0800)
commit79d84e19d774dd71757b9dff90179ae593eaf550
tree0c2ac7fd25375152e8ea4d7f4060e805e401b427
parentfed521206dfc72e75c8307e7cde8475a65385d9d
fix param_sysfs_builtin name length check

patch 22800a2830ec07e7cc5c837999890ac47cc7f5de in mainline.

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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Chuck Ebbert <cebbert@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/params.c