lkml.org 
[lkml]   [2004]   [Sep]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH] Fix leak in eicon debug code.
    Spotted with the source checker from Coverity.com.

    Signed-off-by: Dave Jones <davej@redhat.com>


    diff -urpN --exclude-from=/home/davej/.exclude bk-linus/drivers/isdn/hardware/eicon/debug.c linux-2.6/drivers/isdn/hardware/eicon/debug.c
    --- bk-linus/drivers/isdn/hardware/eicon/debug.c 2004-08-31 23:13:09.000000000 +0100
    +++ linux-2.6/drivers/isdn/hardware/eicon/debug.c 2004-09-01 13:31:10.000000000 +0100
    @@ -891,6 +891,7 @@ void diva_mnt_add_xdi_adapter (const DES
    if (clients[id].hDbg && (clients[id].request == d->request)) {
    diva_os_leave_spin_lock (&dbg_q_lock, &old_irql, "register");
    diva_os_leave_spin_lock (&dbg_adapter_lock, &old_irql1, "register");
    + diva_os_free(0, pmem);
    return;
    }
    if (clients[id].hDbg) { /* slot is busy */
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/
    \
     
     \ /
      Last update: 2005-03-22 14:05    [W:0.024 / U:30.068 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site