lkml.org 
[lkml]   [2010]   [Apr]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] proc: pagemap: Hold mmap_sem during page walk
On Fri, 2 Apr 2010 09:30:58 -0500
Matt Mackall <mpm@selenic.com> wrote:

> On Fri, Apr 02, 2010 at 09:11:29AM +0900, KAMEZAWA Hiroyuki wrote:
>
> > int ret = -ESRCH;
> ...
> > + pm.len = PM_ENTRY_BYTES * (PAGEMAP_WALK_SIZE >> PAGE_SHIFT);
> > + pm.buffer = kmalloc(pm.len, GFP_TEMPORARY);
> > + if (!pm.buffer)
> > goto out_mm;
> ...
> > out_mm:
> > mmput(mm);
>
> Looks like this gets the wrong return code?
>
I'm sorry. And thank you for pointing out.
I confirmed merged one has fixed code.

Regards,
-Kame



\
 
 \ /
  Last update: 2010-04-06 08:55    [W:0.047 / U:1.372 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site