diff options
author | Armin Schindler <armin@melware.de> | 2007-07-17 07:04:23 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-17 13:23:06 -0400 |
commit | 2bf68a3699601bd3e53b4efce7f2d780e243aa35 (patch) | |
tree | 1677fe4d8ea67427e9ab393d3869fa4888df34a0 /drivers | |
parent | 5e6c20a93b700ba884a6bced498b2691e2dd821b (diff) |
i4l: leak in eicon/idifunc.c
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@gmx.de>
Acked-by: Armin Schindler <armin@melware.de>
Cc: Karsten Keil <kkeil@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/isdn/hardware/eicon/idifunc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/isdn/hardware/eicon/idifunc.c b/drivers/isdn/hardware/eicon/idifunc.c index 4cbc68cf4dba..db87d5105422 100644 --- a/drivers/isdn/hardware/eicon/idifunc.c +++ b/drivers/isdn/hardware/eicon/idifunc.c | |||
@@ -106,6 +106,7 @@ static void um_new_card(DESCRIPTOR * d) | |||
106 | } else { | 106 | } else { |
107 | DBG_ERR(("could not create user mode idi card %d", | 107 | DBG_ERR(("could not create user mode idi card %d", |
108 | adapter_nr)); | 108 | adapter_nr)); |
109 | diva_os_free(0, card); | ||
109 | } | 110 | } |
110 | } | 111 | } |
111 | 112 | ||