Re: [RFC PATCH 1/1] mm/percpu.c: fix memory leakage issue when allocate a odd alignment area

From: zijun_hu
Date: Thu Oct 13 2016 - 20:59:20 EST


On 2016/10/14 8:28, Tejun Heo wrote:
> Hello,
>
> On Fri, Oct 14, 2016 at 08:23:06AM +0800, zijun_hu wrote:
>> for the current code, only power of 2 alignment value can works well
>>
>> is it acceptable to performing a power of 2 checking and returning error code
>> if fail?
>
> Yeah, just add is_power_of_2() test to the existing sanity check.
>
> Thanks.
>
okay. i will do that