lkml.org 
[lkml]   [2011]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 02/16] MPILIB: Add a missing ENOMEM check [ver #2]
Date
Serge Hallyn <serge.hallyn@canonical.com> wrote:

> > p = buffer = kmalloc(n, GFP_KERNEL);
> > + if (p< 0)
> > + return NULL;
>
> Sorry, maybe i'm having a confused morning, but shouldn't this check be for
> p==NULL rather than p<0?

Bah. You are, of course, right. Updated for the next version.

David


\
 
 \ /
  Last update: 2011-11-30 18:03    [W:1.891 / U:0.460 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site