Details

[Home]

Issue of the Implementation # L0131

Brief

drivers/media/usb/cx231xx/cx231xx-cards.c: double free and leaks on failure path in cx231xx_usb_probe()

Detailed Description

There are numerous issues in error handling code of cx231xx initialization. Double free (when cx231xx_init_dev() calls kfree(dev) via cx231xx_release_resources() and then cx231xx_usb_probe() does the same) and memory leaks (e.g. usb_get_dev() before (ifnum != 1) check in cx231xx_usb_probe()) are just a few of them.

Component

linux-kernel 3.11

Accepted

https://lkml.org/lkml/2013/10/7/569
commit

Status

Fixed in kernel 3.12-rc3

[Home]