aboutsummaryrefslogtreecommitdiff
path: root/modutils/modprobe-small.c
diff options
context:
space:
mode:
Diffstat (limited to 'modutils/modprobe-small.c')
-rw-r--r--modutils/modprobe-small.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/modutils/modprobe-small.c b/modutils/modprobe-small.c
index e82ee4cef..4f073536a 100644
--- a/modutils/modprobe-small.c
+++ b/modutils/modprobe-small.c
@@ -317,9 +317,7 @@ static FAST_FUNC int fileAction(const char *pathname,
317 } 317 }
318 318
319 cur = module_count++; 319 cur = module_count++;
320 if (!(cur & 0xfff)) { 320 modinfo = xrealloc_vector(modinfo, 12, cur);
321 modinfo = xrealloc(modinfo, sizeof(modinfo[0]) * (cur + 0x1001));
322 }
323 modinfo[cur].pathname = xstrdup(pathname); 321 modinfo[cur].pathname = xstrdup(pathname);
324 modinfo[cur].desc = NULL; 322 modinfo[cur].desc = NULL;
325 modinfo[cur+1].pathname = NULL; 323 modinfo[cur+1].pathname = NULL;