diff options
author | Denis Cheng <crquan@gmail.com> | 2008-01-21 10:08:25 +0100 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2008-01-29 07:13:24 +0100 |
commit | 8686c99875f3849047660a5b6d02438443f22ce7 (patch) | |
tree | 42eca5ce8533f973553376e4afbe7362608bf01d /include/xen | |
parent | module: make module_address_lookup safe (diff) | |
download | linux-8686c99875f3849047660a5b6d02438443f22ce7.tar.xz linux-8686c99875f3849047660a5b6d02438443f22ce7.zip |
module: fix the module name length in param_sysfs_builtin
the original code use KOBJ_NAME_LEN for built-in module name length,
that's defined to 20 in linux/kobject.h, but this is not enough appearntly,
many module names are longer than this;
#define KOBJ_NAME_LEN 20
another macro is MODULE_NAME_LEN defined in linux/module.h, I think this is
enough for module names:
#define MODULE_NAME_LEN (64 - sizeof(unsigned long))
Signed-off-by: Denis Cheng <crquan@gmail.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'include/xen')
0 files changed, 0 insertions, 0 deletions