diff options
Diffstat (limited to 'kernel/module.c')
| -rw-r--r-- | kernel/module.c | 3 | 
1 files changed, 1 insertions, 2 deletions
| diff --git a/kernel/module.c b/kernel/module.c index 33c04ad51175..db0ead0363e2 100644 --- a/kernel/module.c +++ b/kernel/module.c | |||
| @@ -784,8 +784,7 @@ EXPORT_SYMBOL_GPL(symbol_put_addr); | |||
| 784 | static ssize_t show_refcnt(struct module_attribute *mattr, | 784 | static ssize_t show_refcnt(struct module_attribute *mattr, | 
| 785 | struct module *mod, char *buffer) | 785 | struct module *mod, char *buffer) | 
| 786 | { | 786 | { | 
| 787 | /* sysfs holds a reference */ | 787 | return sprintf(buffer, "%u\n", module_refcount(mod)); | 
| 788 | return sprintf(buffer, "%u\n", module_refcount(mod)-1); | ||
| 789 | } | 788 | } | 
| 790 | 789 | ||
| 791 | static struct module_attribute refcnt = { | 790 | static struct module_attribute refcnt = { | 
