lkml.org 
[lkml]   [2018]   [Jan]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH 1/2] mm: Fix memory size alignment in devm_memremap_pages_release()
On Wed, Jan 17, 2018 at 4:06 PM, Jan H. Schönherr <jschoenh@amazon.de> wrote:
> The functions devm_memremap_pages() and devm_memremap_pages_release() use
> different ways to calculate the section-aligned amount of memory. The
> latter function may use an incorrect size if the memory region is small
> but straddles a section border.
>
> Use the same code for both.
>
> Fixes: 5f29a77cd957 ("mm: fix mixed zone detection in devm_memremap_pages")
> Signed-off-by: Jan H. Schönherr <jschoenh@amazon.de>

Looks good to me, applied for 4.16.

\
 
 \ /
  Last update: 2018-01-20 01:16    [W:1.256 / U:0.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site