We will process several independent module dirs. Signed-off-by: Keegan McAllister <keegan@xxxxxxxxxxx> --- depmod.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/depmod.c b/depmod.c index d4010bb..8b03ac1 100644 --- a/depmod.c +++ b/depmod.c @@ -79,6 +79,11 @@ struct symbol static struct symbol *symbolhash[SYMBOL_HASH_SIZE]; +static void clear_symbolhash() +{ + memset(symbolhash, 0, sizeof(symbolhash)); +} + /* This is based on the hash agorithm from gdbm, via tdb */ static inline unsigned int tdb_hash(const char *name) { @@ -1352,6 +1357,8 @@ static void do_module_dir(const char *basedir, const char *config, int i, opt; char *dirname; + clear_symbolhash(); + nofail_asprintf(&dirname, "%s%s%s", basedir, module_dir, version); if (maybe_all) { -- 1.7.2.3 -- To unsubscribe from this list: send the line "unsubscribe linux-modules" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html