From: Alan Cox Date: Thu, 11 Jun 2009 11:46:41 +0000 (+0100) Subject: tty: Fix oops when scanning the polling list for kgdb X-Git-Tag: v2.6.31-rc1~399^2~54 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f0878acba7db24323f5ba4055ec9a96895bb150;p=pandora-kernel.git tty: Fix oops when scanning the polling list for kgdb Costantino Leandro found a bug in tty_find_polling_driver and provided a patch that fixed the crash but not the underlying bug. This fixes the underlying bug where the list walk corrupts the values it is using on a match but then reuses them if the open fails. Signed-off-by: Alan Cox Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed