aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/misc/isight_firmware.c
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2011-12-23 14:02:55 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2012-01-12 11:29:38 -0800
commit30234e2694cbc1d6985cafc87db5cd4848493196 (patch)
treee60a3ba75b84237ccbdbbab7e3222d1aaf1e545a /drivers/usb/misc/isight_firmware.c
parent9e9f6a20b59570ca9374b5e79cf1e7df32c67944 (diff)
downloadvexpress-lsk-30234e2694cbc1d6985cafc87db5cd4848493196.tar.gz
drivers/usb/class/cdc-acm.c: clear dangling pointer
commit e7c8e8605d0bafc705ff27f9da98a1668427cc0f upstream. On some failures, the country_code field of an acm structure is freed without freeing the acm structure itself. Elsewhere, operations including memcpy and kfree are performed on the country_code field. The patch sets the country_code field to NULL when it is freed, and likewise sets the country_code_size field to 0. Signed-off-by: Julia Lawall <julia@diku.dk> Acked-by: Oliver Neukum <oneukum@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/misc/isight_firmware.c')
0 files changed, 0 insertions, 0 deletions