The patch titled driver core: refcounting fix has been added to the -mm tree. Its filename is driver-core-refcounting-fix.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: driver core: refcounting fix From: Mike Galbraith <efault@xxxxxx> Fix a reference counting bug exposed by commit 725522b5453dd680412f2b6463a988e4fd148757. If driver.mod_name exists, we take a reference in module_add_driver(), and never release it. Undo that reference in module_remove_driver(). Signed-off-by: Mike Galbraith <efault@xxxxxx> Cc: Greg KH <greg@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/module.c | 6 ++++++ 1 files changed, 6 insertions(+) diff -puN kernel/module.c~driver-core-refcounting-fix kernel/module.c --- a/kernel/module.c~driver-core-refcounting-fix +++ a/kernel/module.c @@ -2425,6 +2425,12 @@ void module_remove_driver(struct device_ kfree(driver_name); } } + /* + * Undo the additional reference we added in module_add_driver() + * via kset_find_obj() + */ + if (drv->mod_name) + kobject_put(&drv->kobj); } EXPORT_SYMBOL(module_remove_driver); #endif _ Patches currently in -mm which might be from efault@xxxxxx are driver-core-refcounting-fix.patch readahead-call-scheme.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html