summaryrefslogtreecommitdiffstats
path: root/kernel/locking
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>2014-10-24 14:56:01 -0400
committerSteven Rostedt <rostedt@goodmis.org>2014-10-24 16:33:36 -0400
commit8252ecf346474cfe46315bd0a7ca655c293c34a9 (patch)
tree71a1ee72107c5907ea8bd898c536ad65b0367de3 /kernel/locking
parentf114040e3ea6e07372334ade75d1ee0775c355e1 (diff)
downloadop-kernel-dev-8252ecf346474cfe46315bd0a7ca655c293c34a9.zip
op-kernel-dev-8252ecf346474cfe46315bd0a7ca655c293c34a9.tar.gz
ftrace: Set ops->old_hash on modifying what an ops hooks to
The code that checks for trampolines when modifying function hooks tests against a modified ops "old_hash". But the ops old_hash pointer is not being updated before the changes are made, making it possible to not find the right hash to the callback and possibly causing ftrace to break in accounting and disable itself. Have the ops set its old_hash before the modifying takes place. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/locking')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud