From: Thadeu Lima de Souza Cascardo Date: Thu, 25 Jun 2009 13:41:30 +0000 (+0100) Subject: acm: Fix oops when closing ACM tty device right after open has failed. X-Git-Tag: v2.6.31-rc2~88 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=922b13565b6a826a925f9f91f053dc9cb0d6210e;p=pandora-kernel.git acm: Fix oops when closing ACM tty device right after open has failed. This commit 10077d4a6674f535abdbe25cdecb1202af7948f1 has stopped checking if there was a valid acm device associated to the tty, which is not true right after open fails and tty subsystem tries to close the device. As an example, open fails with a non-existing device, when probe has never been called, because the device has never been plugged. This is common in systems with static modules and no udev. Signed-off-by: Thadeu Lima de Souza Cascardo Signed-off-by: Alan Cox Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed