ftrace/x86: One more missing sync after fixup of function modification failure
[firefly-linux-kernel-4.4.55.git] / arch / x86 / kernel / ftrace.c
index 6b566c82d82c848f3cb9b9055f4c79339667474d..69885e2f20952d9632e6474b11b50d254d689678 100644 (file)
@@ -660,8 +660,8 @@ ftrace_modify_code(unsigned long ip, unsigned const char *old_code,
                ret = -EPERM;
                goto out;
        }
-       run_sync();
  out:
+       run_sync();
        return ret;
 
  fail_update: