ftrace: break out modify loop immediately on detection of error
authorSteven Rostedt <srostedt@redhat.com>
Thu, 19 Feb 2009 18:41:27 +0000 (13:41 -0500)
committerSteven Rostedt <srostedt@redhat.com>
Fri, 20 Feb 2009 19:30:20 +0000 (14:30 -0500)
commit4377245aa93b65b6597e4b7bb460fb9abc48b56b
tree00eae2cbdd12e855bbde2f6cd6d1a6e6fd659a11
parent90c7ac49aa819feb9433b5310089fca6399881c0
ftrace: break out modify loop immediately on detection of error

Impact: added precaution on failure detection

Break out of the modifying loop as soon as a failure is detected.
This is just an added precaution found by code review and was not
found by any bug chasing.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
kernel/trace/ftrace.c