Re: [PATCH 4.14 198/205] perf/core: Dont WARN() for impossible ring-buffer sizes

From: Peter Zijlstra
Date: Wed Feb 13 2019 - 08:13:49 EST


On Wed, Feb 13, 2019 at 01:03:39PM +0000, Rantala, Tommi T. (Nokia - FI/Espoo) wrote:
> Changing the patch like this fixes it...
>
> - if (order_base_2(size) >= MAX_ORDER)
> + if (order_base_2(size) > MAX_ORDER)

That's wrong too..

There is this queued:

http://lkml.kernel.org/r/tip-528871b456026e6127d95b1b2bd8e3a003dc1614@xxxxxxxxxxxxxx