]> 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>
Fri, 16 Nov 2007 16:12:43 +0000 (08:12 -0800)
commite8af293bb2f8cc44868a67e2af8010feaa7c309b
tree35c0cf39657968a98d6a58a06fc0a10b4b6db5b1
parent2b5ee2866a4a4781158986f21fdaa3395bc27d13
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