diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 0a58a0c0d86bcd87332997955eb4a907c82bd58a..df91be2e5a141dd46ed65156d3aefbb45a0daadf 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c @@ -3180,7 +3180,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; }