]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (6325): Double-free in cx23885_initdev
authorFlorin Malita <fmalita@gmail.com>
Sat, 13 Oct 2007 14:49:52 +0000 (11:49 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Mon, 22 Oct 2007 14:01:36 +0000 (12:01 -0200)
commit48f5f2fab4c4ee71bd6d4c46c621573e0fd0541f
treea82d52ce361bd08f69db37c009766d0f039e090e
parent3ff1eb2d02df77b7dbeee8253d2d5d84fcd23144
V4L/DVB (6325): Double-free in cx23885_initdev

Both cx23885_initdev and cx23885_dev_setup free the device in their
error path so a failure in the latter causes a double-free. Since
cx23885_dev_setup is only called from cx23885_initdev, it should be safe
to remove its deallocation and leave the cleanup up to the allocating
function.

Coverity CID 1922.

Signed-off-by: Florin Malita <fmalita@gmail.com>
CC: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/cx23885/cx23885-core.c