Skip to content

Commit

Permalink
i4l: leak in eicon/idifunc.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Armin Schindler authored and Linus Torvalds committed Jul 17, 2007
1 parent 5e6c20a commit 2bf68a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/isdn/hardware/eicon/idifunc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 2bf68a3

Please sign in to comment.