summaryrefslogtreecommitdiff
path: root/tprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'tprintf.c')
0 files changed, 0 insertions, 0 deletions
Diffstat (limited to 'Documentation')
linux/net-next.git/tree/kernel/jump_label.c?id=cb59974742aea24adf6637eb0c4b8e7b48bca6fb'>kernel/jump_label.c
parentdc440d10e1668b15fe704a23adb9b53fbbb24a44 (diff)
tracing: fix event_subsystem ref counting
Fix a bug introduced by e9dbfae5, which prevents event_subsystem from ever being released. Ref_count was added to keep track of subsystem users, not for counting events. Subsystem is created with ref_count = 1, so there is no need to increment it for every event, we have nr_events for that. Fix this by touching ref_count only when we actually have a new user - subsystem_open(). Cc: stable@vger.kernel.org Signed-off-by: Ilya Dryomov <idryomov@gmail.com> Link: http://lkml.kernel.org/r/1320052062-7846-1-git-send-email-idryomov@gmail.com Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/jump_label.c')
(limited to 'Documentation')