Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1500650

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

From Tejun Heo <tj@kernel.org>
Newsgroups linux.kernel
Subject Re: [RFC PATCH 1/1] mm/percpu.c: fix memory leakage issue when allocate a odd alignment area
Date 2016-10-14 02:50 +0200
Message-ID <srYRb-2nn-15@gated-at.bofh.it> (permalink)
References <sr5i1-7dD-9@gated-at.bofh.it> <srXLr-1KS-1@gated-at.bofh.it> <srYxQ-2gy-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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.

-- 
tejun

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [RFC PATCH 1/1] mm/percpu.c: fix memory leakage issue when  allocate a odd alignment area Tejun Heo <tj@kernel.org> - 2016-10-14 01:40 +0200
  Re: [RFC PATCH 1/1] mm/percpu.c: fix memory leakage issue when  allocate a odd alignment area zijun_hu <zijun_hu@zoho.com> - 2016-10-14 02:30 +0200
    Re: [RFC PATCH 1/1] mm/percpu.c: fix memory leakage issue when  allocate a odd alignment area Tejun Heo <tj@kernel.org> - 2016-10-14 02:50 +0200
      Re: [RFC PATCH 1/1] mm/percpu.c: fix memory leakage issue when  allocate a odd alignment area zijun_hu <zijun_hu@zoho.com> - 2016-10-14 03:00 +0200

csiph-web