lkml.org 
[lkml]   [2001]   [Jan]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: your mail
    On Wed, Jan 10, 2001 at 04:24:21PM -0200, Thiago Rondon wrote:
    >
    > Check kmalloc().
    >
    > -Thiago Rondon
    >
    > --- linux-2.4.0-ac5/drivers/pcmcia/ds.c Sat Sep 2 04:13:49 2000
    > +++ linux-2.4.0-ac5.maluco/drivers/pcmcia/ds.c Wed Jan 10 16:20:53 2001
    > @@ -414,6 +414,8 @@
    > /* Add binding to list for this socket */
    > driver->use_count++;
    > b = kmalloc(sizeof(socket_bind_t), GFP_KERNEL);
    > + if (!b)
    > + return -ENOMEM;
    > b->driver = driver;
    > b->function = bind_info->function;
    > b->instance = NULL;
    >

    As with the other kmalloc patch, this is also broken; things have been
    done that need to be un-done, and you can't just exit the function
    here. I'll come up with a better fix.

    -- Dave
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:28    [W:0.023 / U:122.388 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site