]> git.hungrycats.org Git - linux/commit
[PATCH] fix modprobe_path and hotplug_path sizes and sysctl
authorAndrew Morton <akpm@osdl.org>
Sat, 12 Jun 2004 23:41:17 +0000 (16:41 -0700)
committerLinus Torvalds <torvalds@evo.osdl.org>
Sat, 12 Jun 2004 23:41:17 +0000 (16:41 -0700)
commit942f5de49374d5470074d8e6c2dd86e02a7a12f1
tree6230e65b22826a7149cc91774c7d649aa154741a
parent7f94e2a677d0630019883a132d60b55036ebc31c
[PATCH] fix modprobe_path and hotplug_path sizes and sysctl

From: Andy Whitcroft <apw@shadowen.org>

Both modprobe_path and hotplug_path are arbitrarily sized at 256 bytes and
that size is also expressed directly in the sysctl code.  It seems
reasonable to define a standard length and use that for consitancy.  This
patch introduces the constant KMOD_PATH_LEN and uses that.

Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/kmod.h
kernel/kmod.c
kernel/sysctl.c