]> git.baikalelectronics.ru Git - kernel.git/commit
acm: Fix oops when closing ACM tty device right after open has failed.
authorThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Thu, 25 Jun 2009 13:41:30 +0000 (14:41 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 25 Jun 2009 18:24:26 +0000 (11:24 -0700)
commitda5f6bd51c14671ad91e94405cd8daa20c4cfce3
tree4c5680f084b62afd5d0f2e6247fd500277610c65
parent6abc72622b6a94db254b421cf88797b5bbe15c7b
acm: Fix oops when closing ACM tty device right after open has failed.

This commit 1a0926ad055bca1ea43d817937a0d02c66c6516a 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 <cascardo@holoscopio.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/usb/class/cdc-acm.c