]> git.baikalelectronics.ru Git - kernel.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)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 15 Nov 2007 02:45:42 +0000 (18:45 -0800)
commit44d9489106744585ff41af5220e231588d0cc5ca
tree48dbd0e712551d72ba9a6631797a38803a47b737
parent5c52b79d757d04000bc6f197a94a93d1a6c19fbb
fix param_sysfs_builtin name length check

Commit ba76b390ec0b587bd0e4da33a975dfc13b485ba5 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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/params.c