lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.61.0706071604360.7559@phoenix.one.melware.de>
Date:	Thu, 7 Jun 2007 16:06:17 +0200 (CEST)
From:	Armin Schindler <armin@...ware.de>
To:	Linux Kernel Mailinglist <linux-kernel@...r.kernel.org>
Subject: [PATCH] Leak in eicon/idifunc.c

Hi,

coverity spotted a possible leak in the idifunc.c file (bug id #1252),
in um_new_card(), if the diva_user_mode_idi_create_adapter() fails,
we dont free the memory allocated for card

Signed-off-by: Eric Sesterhenn <snakebyte@....de>
Acked-by: Armin Schindler <armin@...ware.de>

--- linux-2.6/drivers/isdn/hardware/eicon/idifunc.c.orig	2007-05-22 00:22:02.000000000 +0200
+++ linux-2.6/drivers/isdn/hardware/eicon/idifunc.c	2007-05-22 00:22:52.000000000 +0200
@@ -106,6 +106,7 @@ static void um_new_card(DESCRIPTOR * d)
 	} else {
 		DBG_ERR(("could not create user mode idi card %d",
 			 adapter_nr));
+		diva_os_free(0, card);
 	}
 }
 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ