From: Dan Carpenter Date: Thu, 31 Dec 2009 15:42:55 +0000 (+0200) Subject: USB: serial: fix DMA buffers on stack for io_edgeport.c X-Git-Tag: v2.6.34-rc1~215^2~124 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0ef90b49857b403c1cfa62fce229c967dd4be40;p=pandora-kernel.git USB: serial: fix DMA buffers on stack for io_edgeport.c The original code was passing a stack variable as a dma buffer, so I made it an allocated variable. Instead of adding a bunch of kfree() calls, I changed all the error return paths to gotos. Also I noticed that the error checking wasn't correct because usb_get_descriptor() can return negative values. While I was at it, I made an unrelated white space change by moving the unicode_to_ascii() on to one line. Signed-off-by: Dan Carpenter Cc: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed