diff options
Diffstat (limited to 'meta/recipes-kernel/module-init-tools/files/grab_module_memset.patch')
-rw-r--r-- | meta/recipes-kernel/module-init-tools/files/grab_module_memset.patch | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/meta/recipes-kernel/module-init-tools/files/grab_module_memset.patch b/meta/recipes-kernel/module-init-tools/files/grab_module_memset.patch deleted file mode 100644 index 31dc0e96b0..0000000000 --- a/meta/recipes-kernel/module-init-tools/files/grab_module_memset.patch +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | # this patch is from Mark Hatle <mark.hatle@windriver.com>, who ran into | ||
2 | # a random segfault using the latest module-init-tools (3.12) and finally | ||
3 | # trace back to depmod.c:grab_module, which appears that the new malloc(...) | ||
4 | # setups up things, but never clears the memory that was just allocated. | ||
5 | # | ||
6 | # Kevin Tian <kevin.tian@intel.com>, 2010-08-06 | ||
7 | |||
8 | Upstream-Status: Pending | ||
9 | |||
10 | diff --git a/depmod.c b/depmod.c | ||
11 | index 647e5e6..46e03e0 100644 | ||
12 | --- a/depmod.c | ||
13 | +++ b/depmod.c | ||
14 | @@ -313,6 +313,7 @@ static struct module *grab_module(const char *dirname, const char *filename) | ||
15 | |||
16 | new = NOFAIL(malloc(sizeof(*new) | ||
17 | + strlen(dirname?:"") + 1 + strlen(filename) + 1)); | ||
18 | + memset(new, 0x00, sizeof(*new) + strlen(dirname?:"") + 1 + strlen(filename) + 1); | ||
19 | if (dirname) | ||
20 | sprintf(new->pathname, "%s/%s", dirname, filename); | ||
21 | else | ||