i4l: leak in eicon/idifunc.c
commit2bf68a3699601bd3e53b4efce7f2d780e243aa35
authorArmin Schindler <armin@melware.de>
Tue, 17 Jul 2007 11:04:23 +0000 (17 04:04 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 17 Jul 2007 17:23:06 +0000 (17 10:23 -0700)
tree1677fe4d8ea67427e9ab393d3869fa4888df34a0
parent5e6c20a93b700ba884a6bced498b2691e2dd821b
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>
drivers/isdn/hardware/eicon/idifunc.c