From: Johan Hovold Date: Mon, 10 Jun 2013 16:29:38 +0000 (+0200) Subject: USB: pl2303: fix device initialisation at open X-Git-Tag: v3.2.47~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f9613bfc25a11c5ed61c2213031b209381619cc;p=pandora-kernel.git USB: pl2303: fix device initialisation at open commit 2d8f4447b58bba5f8cb895c07690434c02307eaf upstream. Do not use uninitialised termios data to determine when to configure the device at open. This also prevents stack data from leaking to userspace in the OOM error path. Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman [bwh: Backported to 3.2: tty_struct::termios is a pointer, not a struct] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed