Skip to content
Commit cb599747 authored by Ilya Dryomov's avatar Ilya Dryomov Committed by Steven Rostedt
Browse files

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: default avatarIlya Dryomov <idryomov@gmail.com>
Link: http://lkml.kernel.org/r/1320052062-7846-1-git-send-email-idryomov@gmail.com


Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent dc440d10
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment