Re: [RFC PATCH 1/1] mm/percpu.c: fix memory leakage issue when allocate a odd alignment area
From: Tejun Heo
Date: Thu Oct 13 2016 - 20:45:25 EST
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.