[PATCH] Fix leak in eicon debug code.

From: Dave Jones
Date: Wed Sep 01 2004 - 11:02:57 EST


Spotted with the source checker from Coverity.com.

Signed-off-by: Dave Jones <davej@xxxxxxxxxx>


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/