The patch titled Off-by-one in /sys/module/*/refcnt has been added to the -mm tree. Its filename is off-by-one-in-sys-module-refcnt.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: Off-by-one in /sys/module/*/refcnt From: Alexey Dobriyan <adobriyan@xxxxxxxxx> sysfs internals were changed to not pin module in question. Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxxxx> Acked-by: Tejun Heo <htejun@xxxxxxxxx> Cc: Kay Sievers <kay.sievers@xxxxxxxx> Cc: Greg KH <greg@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/module.c | 3 +-- 1 files changed, 1 insertion(+), 2 deletions(-) diff -puN kernel/module.c~off-by-one-in-sys-module-refcnt kernel/module.c --- a/kernel/module.c~off-by-one-in-sys-module-refcnt +++ a/kernel/module.c @@ -784,8 +784,7 @@ EXPORT_SYMBOL_GPL(symbol_put_addr); static ssize_t show_refcnt(struct module_attribute *mattr, struct module *mod, char *buffer) { - /* sysfs holds a reference */ - return sprintf(buffer, "%u\n", module_refcount(mod)-1); + return sprintf(buffer, "%u\n", module_refcount(mod)); } static struct module_attribute refcnt = { _ Patches currently in -mm which might be from adobriyan@xxxxxxxxx are blackfin-arch-after-removing-fsh-from-mmh-fix-the-broken-on-blackfin-arch.patch remove-unused-struct-proc_dir_entryset.patch off-by-one-in-sys-module-refcnt.patch faster-ext2_clear_inode.patch fs-proc-mmuc-headers-butchery.patch remove-sysctlh-from-fsh.patch epcac-reformat-comments-and-coding-style-improvements.patch revert-faster-ext2_clear_inode.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