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:0.017 / U:89.008 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site