From: Julia Lawall Date: Fri, 23 Dec 2011 13:02:55 +0000 (+0100) Subject: drivers/usb/class/cdc-acm.c: clear dangling pointer X-Git-Tag: v3.2.1~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30234e2694cbc1d6985cafc87db5cd4848493196;p=pandora-kernel.git 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 Acked-by: Oliver Neukum Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed