Home Home > GIT Browse > SLE11-SP4
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Benes <mbenes@suse.cz>2018-06-13 13:31:33 +0200
committerMiroslav Benes <mbenes@suse.cz>2018-06-13 13:31:33 +0200
commit3a4c3dceb700a727763fbb834e0d5f020115aebf (patch)
treea63b1e41f5d97389330977ee36936452c4aec2b2
parent1274d5bf8eb2adde02efee6d18a9b1d92713a75c (diff)
trace: module: Maintain a valid user count (bsc#1097443).
-rw-r--r--include/trace/events/module.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/trace/events/module.h b/include/trace/events/module.h
index 82707310a071..1c6b51e36d84 100644
--- a/include/trace/events/module.h
+++ b/include/trace/events/module.h
@@ -79,7 +79,7 @@ DECLARE_EVENT_CLASS(module_refcnt,
TP_fast_assign(
__entry->ip = ip;
- __entry->refcnt = __this_cpu_read(mod->refptr->incs) + __this_cpu_read(mod->refptr->decs);
+ __entry->refcnt = __this_cpu_read(mod->refptr->incs) - __this_cpu_read(mod->refptr->decs);
__assign_str(name, mod->name);
),