Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1700900
| From | Daniel Lezcano <daniel.lezcano@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] clocksource: arm_arch_timer: Fix mem frame loop initialization |
| Date | 2017-08-01 13:40 +0200 |
| Message-ID | <u9DGO-3pR-23@gated-at.bofh.it> (permalink) |
| References | <u9nLI-1gu-11@gated-at.bofh.it> <u9Dns-3jr-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Aug 01, 2017 at 12:12:23PM +0100, Mark Rutland wrote:
> On Mon, Jul 31, 2017 at 11:37:28AM -0700, Matthias Kaehlcke wrote:
> > The loop to find the best memory frame in arch_timer_mem_acpi_init()
> > initializes the loop counter with itself ('i = i'), which is suspicious
> > in the first place and pointed out by clang. The loop condition is
> > 'i < timer_count' and a prior for loop exits when 'i' reaches
> > 'timer_count', therefore the second loop is never executed.
> >
> > Initialize the loop counter with 0 to iterate over all timers, which
> > supposedly was the intention before the typo monster attacked.
> >
> > Fixes: c2743a36765d3 ("clocksource: arm_arch_timer: add GTDT support for memory-mapped timer")
> > Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
>
> Ard also spotted this issue [1], along with another issue we still need
> to solve. In the mean time it would be nice to have this fixed, so:
>
> Reported-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
> Acked-by: Mark Rutland <mark.rutland@arm.com>
>
> Daniel, Thomas,
>
> Could one of you please pick this up as a fix, with the above tags?
Hi Mark,
picked as a fix with the above tags.
Thanks.
-- Daniel
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] clocksource: arm_arch_timer: Fix mem frame loop initialization Matthias Kaehlcke <mka@chromium.org> - 2017-07-31 20:40 +0200
Re: [PATCH] clocksource: arm_arch_timer: Fix mem frame loop initialization Mark Rutland <mark.rutland@arm.com> - 2017-08-01 13:20 +0200
Re: [PATCH] clocksource: arm_arch_timer: Fix mem frame loop initialization Daniel Lezcano <daniel.lezcano@linaro.org> - 2017-08-01 13:40 +0200
csiph-web