V4L/DVB (9297): cx18: Fix memory leak on card initialization failure
authorAndy Walls <awalls@radix.net>
Sat, 18 Oct 2008 11:51:28 +0000 (08:51 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 21 Oct 2008 16:20:39 +0000 (14:20 -0200)
commitff086575b7fbfcf48c1e2bc6f8914cbfc2c4ea37
treed0046be6f8f0e480e4ca3eb94904313e10bcc104
parent2515ddc6db8eb49a79f0fe5e67ff09ac7c81eab4
V4L/DVB (9297): cx18: Fix memory leak on card initialization failure

On error exit, the cx18_probe() function did not use the proper entry in
cx18_cards[] with kfree() when card init failed; leaking memory.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx18/cx18-driver.c