From: Peter Hurley <peter@hurleysoftware.com>
Date: Wed, 30 Jan 2013 17:43:51 +0000 (-0500)
Subject: tty: Document required behavior of tty driver close()
X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7be88b4ccb62737abe4bf27f9e66e224a70a12c4;p=linux.git

tty: Document required behavior of tty driver close()

If the tty driver open() fails, the tty driver close() is still
called during the resultant tty release.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---

diff --git a/include/linux/tty_driver.h b/include/linux/tty_driver.h
index dd976cfb61312..756a609892940 100644
--- a/include/linux/tty_driver.h
+++ b/include/linux/tty_driver.h
@@ -40,6 +40,7 @@
  * void (*close)(struct tty_struct * tty, struct file * filp);
  *
  * 	This routine is called when a particular tty device is closed.
+ *	Note: called even if the corresponding open() failed.
  *
  *	Required method.
  *