diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index dbf69b7de0de..7a9fee4b314e 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c @@ -3017,7 +3017,7 @@ static int ftrace_allocate_records(struct ftrace_page *pg, int count) /* if we can't allocate this size, try something smaller */ if (!order) return -ENOMEM; - order >>= 1; + order--; goto again; }