diff options
author | root <root@rshg054.dnsready.net> | 2013-02-10 01:12:52 -0800 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-02-10 01:12:52 -0800 |
commit | 1bb2648cde916ac27d3dd75d7b64a4ddc89787b7 (patch) | |
tree | 016bfa1969323404c37dbef29cfc7242a5a8e9f3 /core/kmod/0001-depmod-fix-hash-lookup-by-relpath-instead-of-uncrelp.patch | |
parent | e9c244cac8e5dc1c59c7e8b7bc885fef04224b70 (diff) |
Sun Feb 10 01:12:35 PST 2013
Diffstat (limited to 'core/kmod/0001-depmod-fix-hash-lookup-by-relpath-instead-of-uncrelp.patch')
-rw-r--r-- | core/kmod/0001-depmod-fix-hash-lookup-by-relpath-instead-of-uncrelp.patch | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/core/kmod/0001-depmod-fix-hash-lookup-by-relpath-instead-of-uncrelp.patch b/core/kmod/0001-depmod-fix-hash-lookup-by-relpath-instead-of-uncrelp.patch deleted file mode 100644 index ae5757016..000000000 --- a/core/kmod/0001-depmod-fix-hash-lookup-by-relpath-instead-of-uncrelp.patch +++ /dev/null @@ -1,43 +0,0 @@ -From 06294621a944e4611e15ce8201df80870e052e7d Mon Sep 17 00:00:00 2001 -From: Lucas De Marchi <lucas.demarchi@profusion.mobi> -Date: Fri, 16 Nov 2012 11:35:30 -0200 -Subject: [PATCH 1/2] depmod: fix hash lookup by relpath instead of uncrelpath - -We index modules in depmod by it's uncompressed relative path, not -relative path. We didn't notice this bug before since this function is -only triggered if we release a module to be replaced by one of higher -priority. - -Also fix a leftover log message referring to relpath instead of -uncrelpath. ---- - tools/depmod.c | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) - -diff --git a/tools/depmod.c b/tools/depmod.c -index cc9346f..aafe66b 100644 ---- a/tools/depmod.c -+++ b/tools/depmod.c -@@ -1114,7 +1114,7 @@ static int depmod_module_add(struct depmod *depmod, struct kmod_module *kmod) - mod->uncrelpath, mod); - if (err < 0) { - ERR("hash_add_unique %s: %s\n", -- mod->relpath, strerror(-err)); -+ mod->uncrelpath, strerror(-err)); - hash_del(depmod->modules_by_name, mod->modname); - goto fail; - } -@@ -1134,8 +1134,8 @@ static int depmod_module_del(struct depmod *depmod, struct mod *mod) - { - DBG("del %p kmod=%p, path=%s\n", mod, mod->kmod, mod->path); - -- if (mod->relpath != NULL) -- hash_del(depmod->modules_by_uncrelpath, mod->relpath); -+ if (mod->uncrelpath != NULL) -+ hash_del(depmod->modules_by_uncrelpath, mod->uncrelpath); - - hash_del(depmod->modules_by_name, mod->modname); - --- -1.8.0 - |