From: Steven Rostedt (Red Hat) Date: Fri, 24 Oct 2014 18:56:01 +0000 (-0400) Subject: ftrace: Set ops->old_hash on modifying what an ops hooks to X-Git-Tag: omap-for-v3.19/fixes-not-urgent-part1~45^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8252ecf346474cfe46315bd0a7ca655c293c34a9;p=pandora-kernel.git 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 --- Reading git-diff-tree failed